On 28 Feb 2005, at 00:03, Fabienne wrote:
> Works great, thank you very much Matt and Nick.
> In case I (or another person) ever run into this problem again, what
> made you zero in on the UL and Li rules? I have been banging my head
> against a wall over the "#navcontainer a" rules. I had a padding-top
> rule for the UL, but no rule on padding for the left side. It seemed
> like Moz was pushing things somewhere in the neighborhood of 50px to
> the right. Why was that happening? Is there an automatic amount of
> padding put into an UL in Moz?
> -- Fabienne
Lists and cross-browser problems are almost always down to padding and
margin differences. The browsers use internal stylesheets to provide
their default styling; IE uses margin on lists, and Moz uses padding
(or maybe the other way round... it's late here :-)
These days I avoid the risk of being fouled up by default margins and
padding by using
at the start of my stylesheet. The extra work of spacing paragraphs and
so forth manually is more than offset by the time saved not having to
track down this kind of thing.
BTW, a browse through the document tree with the Firefox DOM Inspector
shows the left padding was 40px, so your 50px guess is pretty good :-)
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/