in

Bunker Hollow

Matt Williamson's home on the web, welcome.

Matt Williamson’s Blog

Personal discoveries of an IT professional.

ASP.NET Horizontal Menu Items Won't Center in FireFox

This took entirely too long to figure out.  Hopefully this will help someone else fix it more quickly.  If you have a horizontal ASP.NET menu where all of the buttons are centered and looking great in IE, but will remain left-aligned in FireFox no matter what you do, just wrap the menu control in a -Moz-Center div tag like so:

<div style="text-align:-moz-center;">
     <asp:Menu ...>
     ...
     </asp:Menu>
</div>

References:

http://forums.asp.net/t/1189032.aspx

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
Powered by Community Server (Non-Commercial Edition), by Telligent Systems