W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2003

Re: navigation banner in css.

From: <cpaul@telemetrybox.org>
Date: Wed, 22 Jan 2003 12:41:20 -1000
To: "Mirabella, Mathew J" <Mathew.Mirabella@team.telstra.com>
Cc: W3C-WAI-IG List <w3c-wai-ig@w3.org>
Message-ID: <20030122224120.GA7102@www.cinemarefuse.org>

Aloha,

> HTML:
> <div class="topnav">
> <a href="">Home</a>
> <a href="">About</a>
> <a href="">Services</a>
> <a href="">Resources</a>
> <a href="">Contact</a>
> </div>
> 
> CSS:
> 	.topnav a { display: block; float: left; width: 20%; text-align: 
> center; background-color: black; color: white; text-decoration: none; 
> font-family: Verdana, sans-serif; }

This technique is cool - but I like adding a <ul> container around the <a> so that it will display properly inside of lynx/older browsers.  (check out the menu on http://www.stopsevis.org for an example)


take care,
charles paul
Received on Wednesday, 22 January 2003 17:31:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:08 GMT