spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / new / May 27, 2003

WebReference Update: May 27, 2003

Developer News
Sir Tim Talks Up Linked Open Data Movement
From L.A. to Vegas With 100GbE
Salesforce Rolls Out Big Summer '08 Update

This week we've got a special treat for you. Stuart Robertson, and others, have taken CSS2 menus to their logical conclusion. Thanks to the flexibility of the :hover pseudo-class they've created JavaScript-free drop-down menus, hierarchical menus, and tabs. We sum up the current state of the art.

In other voices this week, two interviews with Net luminaries, one with Lou Rosenfeld of info architecture fame, and another with Steve Pemberton of (X)HTML fame. Finally, the big news this week in the web-dev world is the release of Acrobat 6, from Adobe.

http://www.webreference.com*- link to us today
http://www.webreference.com/new/*- newsletter home
http://www.webreference.com/new/submit.html*- submit article

New this week on WebReference.com and the Web:

1. BOOK EXCERPT:  XSLT Cookbook: Chapter 8, Pt. 2
2. FEATURE:  Pure CSS2 Drop-down Menus
3. OTHER VOICES: 
4. NET NEWS: 

Like what you see? Spread the word! Feel free to send a copy of this newsletter to your friends and colleagues, and while you're at it, snap a link to WebReference.com.


1. BOOK EXCERPT: XSLT Cookbook: Chapter 8, Pt. 2

This week, we continue our series of excerpts from Chapter 8 of the XSLT Cookbook. Today's portion begins is about Creating Frames and Data Driven Style Sheets. By O'Reilly.

http://www.webreference.com/programming/xslt/chap8/2


2. FEATURE: Pure CSS2 Drop-down Menus

Ever since the :hover pseudo-class came around, authors have wondered about creating various effects with this versatile CSS feature. Rollover menus, link highlights, transparent GIF show- throughs, all and more have been transformed by this lightweight, standards-based technique. But until now, drop-down menus still required JavaScript.

Here's a site that uses lists, CSS, and some JavaScript to create sleek drop-down menus:

http://www.gazingus.org

The holy grail of course would be to create a drop-down menu using no JavaScript to turn on and off the visibility of hidden elements. Stuart Robertson of designmeme.com, has done just that:

http://www.designmeme.com/articles/csspulldownmenu.shtml

The technique uses a contextual selector, and the hover pseudo- class on a list element, like this:

.menu li ul {
display: none;
}

.menu li:hover ul {
visibility: visible;
display: block;
position:absolute;
z-index:1;
width:7em;
border:1px solid black;
}

Stuart reports that this technique works for Mozilla, Netscape 6+, Opera 7, Safari, and Konqueror. IE5 Mac and the latest versions of IE for Windows only support the hover pseudo-class on links. We hope future versions will support the :hover pseudo-class on other elements, as per the W3C specification.

"CSS doesn't define which elements may be in the above states, or how the states are entered and left. "

The technique gracefully degrades on these older browsers (rollover on main menu element).

Others have demonstrated this technique, even creating nested, hierarchical CSS2 menus, or tabs with drop-downs:

http://www.fo3nix.pwp.blueyonder.co.uk/
http://www.kalsey.com/tools/csstabs/
http://www.meyerweb.com/eric/css/edge/menus/demo.html

This technique of using pure CSS2 and lists to create menus is lightweight, standards-based, and accessible. Let me know if you find any other similar techniques.


3. OTHER VOICES:  Interview: Lou Rosenfeld
Interview: Steve Pemberton
CSS Zen Garden

4. NET NEWS:  Adobe ships new Acrobat versions
File swapping shifts up a gear
Digitally Archiving the Universe

That's it for this Tuesday, see you next time.

Andy King
Newsletter Editor, WebReference.com
aking at jupitermedia dot com



home / new / May 27, 2003



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
Book Review: Head First JavaScript · Web Hosting Control Panels · Use Your Blog for Fast Search Engine Rankings
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
NetApp's Virtual Storage Strategy Crystallizes · F/MC Watch: A Cisco-Centric Approach · Olympic Time Trials Use Wi-Fi Mesh

Created: May 27, 2003
Revised: May 27, 2003

URL: http://www.webreference.com/new/030527.html