www.webdeveloper.com
Results 1 to 2 of 2

Thread: drop down menu wont stay

  1. #1
    Join Date
    Oct 2012
    Posts
    11

    drop down menu wont stay

    Hello...

    Just wanna know how to make the drop down list stay so you can move the cursor on it and select it...

    This is just stay if i hovered over the link....


    HTML Code:
    <style>
    
    nav {
    float:left;
    }
    
    nav a {
    display:block;
    padding:5px;
    white-space:nowrap;
    }
    
    #bar {
    left: -9999px;
    position:absolute;
    }
    
    nav a:hover + #bar {
    left:0;
    position:absolute;
    }
    
    
    
    </style>
    
    <nav>
    <a href="?"> stay </a>
    <div id="bar">
    <a href="?">****ing </a>
    <a href="?">active</a> 
    </div>
    
    
    </nav>

  2. #2
    Join Date
    Dec 2012
    Location
    Prague, Czech Republic
    Posts
    7
    First you need to create a proper HTML tags

    HTML Code:
    <ul id="nav">  [I]//you can also use <nav>[/I]
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    <li><a href=""></a></li>
    </ul>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles