[thelist] CSS: div background color discrepancy
ben morrison
morrison.ben at gmail.com
Thu Dec 7 10:44:23 CST 2006
On 12/7/06, Julian Rickards <julian.rickards at gmail.com> wrote:
> By default, div's are 100% so I don't see why this is being specified.
> Secondly, there is a discrepancy between IE's interpretation of the box
> model and the W3C standard. To avoid any issues with IE, don't specify both
> a width and padding/margin. If you want a 4px padding, eliminate the 100%
> width (which actually you don't need anyway as I stated above).
Because #header has a float applied it needs a width.
#header {
float:left;
width:100%;
}
--
Ben Morrison
More information about the thelist
mailing list