Style Sheets
  Home arrow Style Sheets arrow Improving the Visual Presentation of a CSS...
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

Improving the Visual Presentation of a CSS Drop-Down Menu
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2008-10-29

    Table of Contents:
  • Improving the Visual Presentation of a CSS Drop-Down Menu
  • A review: the menu’s complete source code
  • Improving the look and feel with additional CSS styles
  • Setting up a working example

  • 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


    Improving the Visual Presentation of a CSS Drop-Down Menu


    (Page 1 of 4 )

    Welcome to the final installment of the series “Building clean drop-down menus with CSS.” This series shows you how to build an extensible drop-down menu which you can easily include in the existing structure of your own web site. In this part, we'll work on the menu we've created to make it more visually appealing.

    Drop-down menus are one of the most popular and useful elements of web-based user interfaces. However, building them using a clean, tight (X)HTML structure is a skill that requires some time to master. Based upon this concept, this series of friendly tutorials guides you through the procedure for creating a highly-accessible drop-down menu, by utilizing only well-structured markup, along with a few simple CSS styles and some JavaScript code.

    In the last tutorial, I used numerous code samples to show you how to modify the original source code of the menu to make it compatible with Internet Explorer 6 and below. Of course, as you might have guessed, this adaptation was performed with the assistance of a simple JavaScript function whose main objective was to display/hide the corresponding menu items via the programmatic manipulation of their respective class attributes.

    Indeed, the definition and implementation of the aforementioned JavaScript function wouldn’t be necessary actually, if IE 6 had the native capacity to support the “hover” CSS pseudo-class for all of the elements of a given web document (not only links), but right, as far as Microsoft web browsers are concerned, this feature is only available in IE 7.

    All right, now that I have reviewed the concepts deployed in the preceding article of the series, I think it’s time to talk about the subject of the current tutorial. IN this final part of the series I’ll show you how to introduce some minor changes to the original CSS styles of this drop-down menu to make it look visually appealing and eventually more professional.

    Hopefully, when you finish reading this article, you’ll have at your disposal a true cross-browser drop-down menu, which can be included in your existing or future web site. So, are you ready to start? Okay, let’s go!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · In this final chapter of the series, a few additional CSS styles are added to the...
       · Thanks for the article, but the link you provide at the end for teh zip file is...
       · Thanks for the kind comments. Hopefully the link will be fixed up soon. Sorry about...
       · Forgot the "p" in the last complete, it should...
       · Try...
     

    STYLE SHEETS ARTICLES

    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...
    - Pulling Web Page Elements with the Blueprint...
    - Pushing Web Page Columns with the Blueprint ...
    - Controlling Column Padding with the Blueprin...
    - Prepending Classes in the Blueprint CSS Fram...
    - Appending Grid Units with the Blueprint CSS ...
    - Changing Grid Units in the Blueprint CSS Fra...
    - The Blueprint CSS Framework
    - Building a Liquid Design with Evened Margins...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT