954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Center UL

Done it now, it doesn't matter.

Matt__
Newbie Poster
2 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

Hey guys, please can you help with this please?

how do I centre the menu-bar? http://bit.ly/pkwM0g

The menu-bar code in the body of the HTML;

The CSS code;

ul {

padding: 5px; list-style: none; background-color: #fff; border-bottom: 1px solid #000; float: left; text-align: center; }

li { float: left; margin: 0 30px; text-align: center; }

li a { text-decoration: none; float:left; color: #000; font: 900 14px/22px "Arial", Helvetica, sans-serif; }

li a span { margin: 0 10px 0 -10px; padding: 1px 8px 5px 18px; position: relative; /*To fix IE6 problem (not displaying)*/ float:left; }

/*RED*/ ul.red li a:hover { color: #fff; background: url(images/red.png) no-repeat top right; }

ul.red li a:hover span { background: url(images/red.png) no-repeat top left; }

ul.red li a.current { background: url(images/red.png) no-repeat top right; color: #fff; }

ul.red li a.current span { background: url(images/red.png) no-repeat top left; }

..

Matt__
Newbie Poster
2 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: