[thelist] CSS: div background color discrepancy

Julian Rickards julian.rickards at gmail.com
Thu Dec 7 11:41:52 CST 2006


OK, missed that.

On 07/12/06, ben morrison <morrison.ben at gmail.com> wrote:
>
> 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
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



-- 
Website: http://jrickards.ca
Blog: http://pen-and-ink.ca
E-mail: julian dot rickards at gmail dot com



More information about the thelist mailing list