Previous Message
Next Message

Centering my menu - IE fine - Firefox not

Sent by Peter Williams on 12 September 2005 05:05


> From: Sue Forrester
> Here's what I have in the stylesheet:
> #menu {
>      border-top: medium solid black; 
>      border-bottom: medium solid black; 
>       margin: 0;
>       padding: 10px;
>       text-align: center;
> }


You are very close to having it also centered in FF.

#menu {
      border-top: medium solid black; 
      border-bottom: medium solid black; 
      margin: 0 auto;
      padding: 10px;
      text-align: center;
}

IE doesn't do margin: auto, instead it centers all block level
elements in response to text-aligh: center. That is why you got
it centered in IE, add the margin: auto and FF should follow
your plan too.

-- 
Peter Williams
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: