FuZion
07-25-2008, 06:36 PM
Hi there,
I have this html:
<div class="box">
<h3>TEXT</h3>
<p>
BOX CONTENT<br />
MORE CONTENT
</p>
</div>
And this CSS:
.box {
background: #fff url(../images/box_header.gif) repeat-x top;
border: 1px solid #EC7700;
}
.box p {
padding: 6px;
padding-top: 4px;
background-color: #FF0033;
}
.box h3 {
padding: 6px;
font-size: 14px;
color: #FFF;
font-weight: bold;
}
My problem is whenever I attempt to center something within this div, the content that should be in the <p></p> tags is displayed outside of it. I have tried many ways including <div align="center">, <center>, <span style=...> and <div style=...>.
Why does this not display correctly?
If you would like to see the website its http://northvillebasketball.com, I have added a background color to the <p> tags so you can see where they are placed in relation to the text.
Thanks in advance!
I have this html:
<div class="box">
<h3>TEXT</h3>
<p>
BOX CONTENT<br />
MORE CONTENT
</p>
</div>
And this CSS:
.box {
background: #fff url(../images/box_header.gif) repeat-x top;
border: 1px solid #EC7700;
}
.box p {
padding: 6px;
padding-top: 4px;
background-color: #FF0033;
}
.box h3 {
padding: 6px;
font-size: 14px;
color: #FFF;
font-weight: bold;
}
My problem is whenever I attempt to center something within this div, the content that should be in the <p></p> tags is displayed outside of it. I have tried many ways including <div align="center">, <center>, <span style=...> and <div style=...>.
Why does this not display correctly?
If you would like to see the website its http://northvillebasketball.com, I have added a background color to the <p> tags so you can see where they are placed in relation to the text.
Thanks in advance!