dankellys
03-10-2010, 08:15 AM
i have the following CSS:
#wrapper
{
width:90%;
margin:0 auto;
}
#container
{
width:100%;
border-left:1px solid #F38F21;
border-right:1px solid #F38F21;
border-bottom:1px solid #F38F21;
float:left;
display:table;
}
#header
{
width:100%;
background-color:#F38F21;
float:left;
text-align:right;
padding-bottom:1em;
}
with the following HTML:
<div id="wrapper">
<div id="header">
Header text
</div>
<div id="container">
Text
<br />
More text
</div>
</div>
In chrome it displays fine, but in Firefox and IE i am getting a gap of about 1px to the right where the bordered container div is larger than the header div...
The container div is set to to be 100%, and is inside of the wrapper div, as is the header div. Can anyone help me, it is driving me insane!
#wrapper
{
width:90%;
margin:0 auto;
}
#container
{
width:100%;
border-left:1px solid #F38F21;
border-right:1px solid #F38F21;
border-bottom:1px solid #F38F21;
float:left;
display:table;
}
#header
{
width:100%;
background-color:#F38F21;
float:left;
text-align:right;
padding-bottom:1em;
}
with the following HTML:
<div id="wrapper">
<div id="header">
Header text
</div>
<div id="container">
Text
<br />
More text
</div>
</div>
In chrome it displays fine, but in Firefox and IE i am getting a gap of about 1px to the right where the bordered container div is larger than the header div...
The container div is set to to be 100%, and is inside of the wrapper div, as is the header div. Can anyone help me, it is driving me insane!