Zeradin Posted November 20, 2009 Share Posted November 20, 2009 I'm looking at mozilla's web page and what I'm seeing is basically this: <html> <head> <style type="text/css"> .sub{ visibility: hidden; } </style> </head> <body> <ul> <li>link1 <a href="#"> <div class="sub"> <ul> <li>sub1</li> </ul> </div> </li> </body> </html> [code] but when you roll over the header the class of the div changes to make it visible. are they using javascript for this or is there a hover technique i'm not thinking of? This seems like a basic task that'd be good to have under my belt. Thanks! Quote Link to comment Share on other sites More sharing options...
kcmartz Posted November 20, 2009 Share Posted November 20, 2009 Well, try going HERE for a place for lots of tutorials and information on CSS (among others like PHP, HTML, JS, ASP, JSP, etc...) Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted November 21, 2009 Share Posted November 21, 2009 .sub:hover { visibility:visible; } Very simple, I would have commented on this the other day when i saw it if the rest of your post was not in the code box . Quote Link to comment Share on other sites More sharing options...
Zeradin Posted November 21, 2009 Author Share Posted November 21, 2009 Oops:) The problem with that fix is like.. if you over over where the dropdown would be it will show up, but want the drop down div to show up when you hover over link1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.