[thelist] CSS: div background color discrepancy

ben morrison morrison.ben at gmail.com
Thu Dec 7 09:37:49 CST 2006


On 12/7/06, Joel D Canfield <joel at spinhead.com> wrote:
> > Ahh! I missed the float on the a element. That changes things a lot.
>
> indeed.
>
> removed the float from the 'a', changed the container's text-align to
> 'left' instead of 'center' (how'd that get there? I still want to sort
> out why virtually the same setup is working for me on other sites, but
> not right now.)
>
> a little bit of hover and .currentpage tweaking, and it now looks the
> way I expected in the FF 2, IE 6 & 7, and NN 7 & 8. In Opera 8 & 9, the
> header isn't floating to the left; have to fix that.

The header is too wide for the page, a horizontal scrollbar now appears.

#header {
width:100%;
padding:4px;
}

this equates to: 100% + 8px;

You should remove the horizontal padding and apply it to its children
as a margin/padding.

ben

-- 
Ben Morrison



More information about the thelist mailing list