Jump to content

navigation bar

Recommended Posts

I created a navigation bar w CSS so it has the rollover-like effect, but i dont know how to center the navigation in the middle of the page at the top. Anyone know how to do this?here is my code...<head><style> ul { list-style-type:none; padding: 2px; font: bold 12px 'Lucida Grande',Verdana,sans-serif;} li { background: #DDDDDD; float: left; padding 2px 10px; border-left: 1px solid #fff; border-right: 1px solid #aaa; border-bottom: 1px solid #666;} ul a:link, ul a:visited, ul a:hover, ul a:active { display: block; padding: 2px 10px; text-decoration: none;} ul a:link { color: #000;} ul a:visited { color: #666;} ul a:hover { color: #f00; background: #fff;} ul a:active { color: #333;}</style></head><body> <ul> <li><a href="#">Home</a></li> <li><a href="#">Products</a></li> <li><a href="#">Contact</a></li> <li><a href="#">FAQs</a></li> <li><a href="#">Other Services</a></li> </ul></body>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...