Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spry horizontal menu bar won't center

Status
Not open for further replies.

zavsays

Technical User
Apr 19, 2001
117
US
This Spry stuff isn't easy for me but after lots of trial and error, I've managed to change the default font,colors and spacing of the menu bar to what I want. One thing I cannot seem to achieve is that I want to center the menu bar on the page (which resides in a centered table). The only choices in Dreamweaver in the "float" command are left, right, none and inherit. "None" won't center it and neither will "inherit". "Left" pushes it left in the table and "right" pushes it to the right. I tried typing in words like "center" and "middle" but they don't work. If anyone has a suggestion, I'd be grateful!

Thanks

This is the current code ....

ul.MenuBarHorizontal li
{
margin: 0;
padding: 0;
list-style-type: none;
font-size: 12px;
position: relative;
text-align: center;
cursor: pointer;
width: inherit;
float: left;
}
 
show more code....table that hold this bar. most likely you will need to center it using cells or whatever the parent object is.

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top