-----Original Message-----
From: whaggerty [mailto:whagge...@vwh.ca] 
Sent: Wednesday, February 11, 2009 11:10 AM
To: taestrada; css-d@lists.css-discuss.org
Subject: Re: [css-d] Centering Navigation Bar Div

Hello;
--------------------------------------------------
From: "taestrada" <taestr...@comcast.net>
Sent: Wednesday, February 11, 2009 10:08 AM
To: <css-d@lists.css-discuss.org>
Subject: [css-d] Centering Navigation Bar Div

> My top navigation bar isn't quite centering. In IE 7, it's a little too 
> far
> to the right, but then in Firefox it's a little too far to the left. I 
> just
> want it perfectly centered in both!
>
> http://www.liftpilatesstudio.com/index1.html
>


I think you'll find that if you add  ... margin-left: auto; margin-right: 
auto; ... to the #topnav it will behave in both browsers

#topnav {
        font: 0.9em Verdana, Arial, Helvetica, sans-serif;
        height: 35px;
                margin-left: auto; /* add this */
                margin-right: auto; /* and this*/
        text-align: center;
        width: 934px;
        overflow:hidden;
        border-bottom: 1px solid #FFF;
        color: #FFF;
}


William Haggerty
System Builder/Solution Provider
Microsoft, Intel, AMD.
Penticton, BC
250-493-0153
http://vwh.ca 


Hi William. I had tried that before, but it didn't change anything, so I
removed it. I tried it again after you suggested it - same result. Isnt'
that crazy??? 

Thank you for responding.

Alix

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to