Loading...
 
Skip to main content

Features / Usability


Aligning Top Bar; Site menu bar to center

Can anyone tell me how to center my site menu bar on my top bar. I am displaying the date in the top bar and when I center text in css file the date is now centered but the menu is not. I can change the color of text on site menu but if I add text-align: center; to that area in css it still stays aligned left.

This is hard to answer without knowing exactly what html elements are involved. Generally speaking, if the parent element has the property text-align:center and the child (centered) element has margin:auto, that should work. But the devil's in the details, so if you have a url or something to show the exact situation, that would help.

-- Gary


Here is my urlQuestion. I can live with the menu being off center if we can't figure it out. But thisQuestion one I'm pulling my hair out over. Thanks for the help.

For the menu centering, try adding these properties in the CSS file:

.horbar {
	text-align: center;
}

.horbar table {
	margin: auto;
	width: auto;
}


About the Flash banner, when I see the page in Opera, I get a "no Flash player" error; in Firefox, nothing displays at all. What are you using to put the banner there, Admin > Site Ads and Banners? Also, what code is used for the banner? (Maybe you'll have to attach it to your post as a file, or substitute parentheses for the more-than and less-than brackets to get it to display in the post.)

-- Gary


My text is now centered. Thanks. Sorry for the screwup on my flash. I did something yesterday but now I fixed it so my flash does play on Mozilla, IE, and other browsers but still only on the first load. Then it says "Flash player not available." This banner worked fine until I upgraded to 3.0.

Thanks again for your time and help,
Rodney


I hate to bring this post back up but since I've upgraded to 4.1 the menu is now back to where it was, not centered but to the left. I'm using the same .css file with the same .horbar lines but now it does not center the top menu.