-
Horizontal Navigation bars in CSS
I need to create a horizontal navigation bar for my site.
This is how to do this with CSS.
1. Create a CSS id for your nav bar and call it whatever you like e.g. #navbar
2. Now give your nav bar some text colours or font properties
3. Now identify what the list items in your nav bar will do - in this case I don’t want it to look like an ordinary list but want it to go straight across the page, so I make the rule for li then #navbar li { display: inline }
4. I don’t want the links to have the blue text and underline so I define the #navbar li a as text-decoration: none
these guys explain it well:
Posted on April 6, 2009 with 16 notes-
-electronic-reader-book liked this
-
wrappings liked this
-
tonywall posted this
blog comments powered by Disqus
-