Style Sheets
  Home arrow Style Sheets arrow Finishing a Drop-Down Menu with the Hover ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Finishing a Drop-Down Menu with the Hover CSS Pseudoclass
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2009-12-29

    Table of Contents:
  • Finishing a Drop-Down Menu with the Hover CSS Pseudoclass
  • Review: building a customizable drop-down menu using CSS pseudo-classes
  • The drop-down menu's Service and Contact sections
  • The drop-down menu's full source code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Finishing a Drop-Down Menu with the Hover CSS Pseudoclass


    (Page 1 of 4 )

    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.

    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!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This last episode of the series gives the final touches to the previous drop-down...
     

    STYLE SHEETS ARTICLES

    - Styling Pseudo Classes with the RGBA CSS3 Pr...
    - Controlling Overall Transparency of an HTML ...
    - Altering the Border Opacity of an HTML Eleme...
    - The RGBA CSS3 Property: an Overview
    - Using Span Tags to Include Logos in Web Pages
    - Using a Single H1 Element to Include Logos i...
    - Combining Divs and H1 Elements to Include Lo...
    - Semantically Including Logos in Web Pages
    - Adding Text Indentation to Style Code Blocks...
    - Decorating Line Numbers in Code Blocks Style...
    - Changing the Color of Code Lines with CSS
    - Using Ordered Lists to Style Code Blocks wit...
    - Using a Zebra Background Effect to Style Cod...
    - Displaying Rounded Corners Built with CSS3 i...
    - Building Rounded Corners with CSS3`s -webkit...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek