Jackal05
10-01-03, 05:08 PM
Hello,
This is my code:
<style type='text/css'>
#boxtop {
[DIV STYLE CODE: Hidden]
}
#boxbottom {
[DIV STYLE CODE: Hidden]
}
</style>
<div id='boxtop' style='border-bottom:none;'>The top Portion of the Box [Header]</div><div
id='boxbottom'>The body of the box.</div>
As you can see I am creating a box. Now here is what I want to do I wasnt to have the box show up in the middle without the text inside it being in the middle. In short I want to be able to align it without the code inside being affected. So i was to put in the CENTER TAG and have the box be in the center while the text stay in the left side. (Maybe something in the CSS to make the text stay in the same place)
Talking about text I would also like to know how I can make it so that if I type text in there it doesn't go out of the box. I don't want to have a static width just a code to keep the text inside. (if there is one).
Thanks for helping. :)
Edit:
I ahave another questions too. :P How can I make it so that when I assign like the <p> tag it would take care of the marginning of the text. For instance have 10 px of free space starting from the text going up,down, left, and right of the box's border with 10px of space. :)
What I want: http://jackaldesigns.com/box.jpg
This is my code:
<style type='text/css'>
#boxtop {
[DIV STYLE CODE: Hidden]
}
#boxbottom {
[DIV STYLE CODE: Hidden]
}
</style>
<div id='boxtop' style='border-bottom:none;'>The top Portion of the Box [Header]</div><div
id='boxbottom'>The body of the box.</div>
As you can see I am creating a box. Now here is what I want to do I wasnt to have the box show up in the middle without the text inside it being in the middle. In short I want to be able to align it without the code inside being affected. So i was to put in the CENTER TAG and have the box be in the center while the text stay in the left side. (Maybe something in the CSS to make the text stay in the same place)
Talking about text I would also like to know how I can make it so that if I type text in there it doesn't go out of the box. I don't want to have a static width just a code to keep the text inside. (if there is one).
Thanks for helping. :)
Edit:
I ahave another questions too. :P How can I make it so that when I assign like the <p> tag it would take care of the marginning of the text. For instance have 10 px of free space starting from the text going up,down, left, and right of the box's border with 10px of space. :)
What I want: http://jackaldesigns.com/box.jpg