Posted by Marc on 09/25/05 23:57
Toby Inkster wrote:
> You set
>
> #menu UL {
> margin-left: 55px;
> }
>
> but you forgot the NUMBER ONE rule when playing with margins or paddings
> for lists.
>
> The number one rule is: always EXPLICITLY set:
>
> * margin-left for UL (or OL)
> * padding-left for UL (or OL)
> * margin-left for LI
> * padding-left for LI
>
> Don't rely on the browser defaults for any of these values, as different
> browsers have wildly different defaults for each of them.
Meaning I need to set the margin-left the same for '#menu li'? Will
that not mean in IE and FF there'll be a margin of 110px?
Marc
[Back to original message]
|