Home arrow Style Sheets arrow Finishing a Drop-Down Menu with the Hover CSS Pseudoclass
STYLE SHEETS

Finishing a Drop-Down Menu with the Hover CSS Pseudoclass


In the last few months, “hover” CSS pseudo-classes have gone through a rebirth process that allows us to evaluate their actual functionality from a new and fresh point of view. This article series shows you how to unlock their potential. In this last part of the four-part series, we'll finish building the drop-down menu that we began in the previous part.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 2
December 29, 2009
TABLE OF CONTENTS:
  1. · Finishing a Drop-Down Menu with the Hover CSS Pseudoclass
  2. · Review: building a customizable drop-down menu using CSS pseudo-classes
  3. · The drop-down menu's Service and Contact sections
  4. · The drop-down menu's full source code

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Finishing a Drop-Down Menu with the Hover CSS Pseudoclass
(Page 1 of 4 )

The reason I’m saying that "hover" CSS pseudo-classes have undergone a rebirth is simple: over the endless years of its rebellious existence, Internet Explorer 6 made it impossible to use “hovers” other than for styling <a> elements in their hovering state. This has been an extremely frustrating experience, considering  that other browsers, like Firefox, Opera and so forth, have offered complete support for this pseudo-class for a long time. 

Fortunately, with the release of IE 7 and 8 (version 9 is coming soon, according to Microsoft) and users making the long-awaited upgrades, the “hover” CSS pseudo-classes can now be used with relative confidence for creating web page elements that not only look pleasant to the human eye, but that use dynamic behavior without the need to write any JavaScript code.

To demonstrate how useful CSS pseudo-classes can be, in previous installment of this series I developed three concrete examples where they were utilized: first for changing the background colors of some divs; then for building a simple tooltip; and finally, for constructing a fancy drop-down menu. In this last case, the menu was left in a rather incomplete state; it allowed users to navigate only to the “Home,” “About Us” and “Products” sections of a fictional web site, which isn’t very functional.

To address the issue mentioned above, in this last episode of the series I’ll be giving the final touches to this sample menu by adding to it the typical “Services” and “Contact” sections, which also will work by means of a few extra CSS pseudo-classes.

Are you eager to see how this will be accomplished? Then start reading now!


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials