Re: navigation banner in css.
| Newsgroups | gmane.org.w3c.accessibility.general |
|---|---|
| Message-ID | <[email protected]> |
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