Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Nov 18, 2009, 15:18   #2
RLM2008
SitePoint Zealot
 
RLM2008's Avatar
 
Join Date: Nov 2008
Location: Thailand
Posts: 106
Just a bit more experimenting.

Working on the idea of placing the drop inside a <span>.

Noticed that using a span enabled me to make list items descendants of an <a> tag.

This way I can use an a:hover, which seems to play nicer with older versions of IE.

A viable route?

HTML4Strict Code:
<ul id="navLinks">
    <li class="first"><a href="index.php">Home</a></li>
    <li id="gallery">
        <a href="gallery.php">Gallery
            <span id="drop1">
                <ul>
                    <li>
                    <a href="Scenes.php">Prehistoric</a></li><li class="last">
                    <a href="AtoZ.html">Creatures</a>
                    </li>
                </ul>
            </span>
        </a>
    </li>
    <li><a href="about.php">About</a></li>
    <li><a href="clients.html">Clients</a></li>
    <li><a href="contact.html">Contact</a></li>
    <li><a href="links.html">Links</a></li>
</ul>

Cheers

RLM
RLM2008 is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 01:07.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved