CSS Tutorial 5 - Navigation Bar using only CSS

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
36,603
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 28, 2009

In this tutorial I show a great method of making a navigation bar with rollover effects using only css. A good navigation bar is one that requires no javascript or outside scripting so it wil work no matter how a users has configured their browser. I introduce you to floating elements within this tutorial and also formatting the anchor tags. Dont be shocked I will be doing a tutorial on each element and more indepth.
This is just a taster of what css go do......Enjoy.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (thornwebdesign)

  • Useless video doesn't work.

  • @ryebread761 Thanks for the feedback.....Great Comment.....

Top Comments

  • @diacron Once again thanks for the feedback...be it good or bad....My next tutorial will be useful......"How to listen and follow a Youtube Video Tutorial from start to finish (and watching twice if need be,etc)".....

see all

All Comments (98)

Sign In or Sign Up now to post a comment!
  • What does "float:left" do? I'm doing a piece of ICT AS Coursework and I am supposed to have a column on the left side of the page 200 pixels wide (reserved for a vertically orientated text-based navigation bar). It's working fine atm, but I assumed that since it wants it on the left side of the page that I should use float:left. But it seems that it should not have any float.

  • @ryebread761 You just dunno how to follow instructions ^_^

  • @mutumbakenya That's why you would put padding in the ul.

    padding-left: 30px;

  • @PearSquirrel but you notice there remains a section on the far left without the hover.as in the hover does not extend to the far left of the navbar div

  • good job chap!with just CSS its a good job

  • @sem785 in the navbar in CSS add margin-top:30px;

  • I would probably use an unordered list instead of all of these divs. It would be more recognizable by search engines and it's considered better practiced, not to mention more organized. It's a similar concept, just replacing the parent div with a 'ul' or 'menu', and the child divs with 'li'. The same css would be used, with the addition of using 'list-style-type:none;' for the li's. Great tutorial!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more