Current location: Hot Scripts Forums » General Web Coding » CSS » dropdown menu in css

dropdown menu in css

Reply
  #1 (permalink)  
Old 04-21-09, 02:23 AM
harish harish is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
dropdown menu in css

this is the source code of dropdown menu in css. I want to make it more attractive can you suggest me any more only using css..
Code:
<html>
<head>
<style type="text/css">
ul {
   margin: 0;
   padding: 0;
   list-style: none;
}
ul li {
   position: relative;
   float: left;
        width: 100px;

}
li ul {
   position: absolute;
   top: 30px;
   display: none;
}
ul li a {
   display: block;
   text-decoration: none;
   line-height: 20px;
   color: #000;
   padding: 5px;
   background: #CC0;
   margin: 0 2px;
}

ul li a:hover { background: #66F; }
li:hover ul, li.over ul { display: block; }
</style>
<body>
<ul id="nav">
   <li><a href="">Home</a></li>
    <li><a href="">Web</a>
      <ul>
        <li><a href="">Browser</a></li>
        <li><a href="">Search</a></li>
      </ul>
    </li>
    <li><a href="">Monkey</a>
      <ul>
        <li><a href="">Eating Banana</a></li>
        <li><a href="">Throwing Poop</a></li>
      </ul>
    </li>
    <li><a href="">Contact</a>
      <ul>
        <li><a href="">Via Web</a></li>
        <li><a href="">Via Phone</a></li>
        <li><a href="">Via tin can and string</a></li>
      </ul>
    </li>
   
</ul>

</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-21-09, 05:48 AM
wswebtech wswebtech is offline
New Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
If you want to make some more attractive then go for below links

just search in google with "Css Drop down menu", you will get many results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-22-09, 09:10 AM
harish harish is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
i have found that on google but on the google we found the use of javascript also But I want to use only css.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 04-22-09, 11:00 AM
RichyRich38's Avatar
RichyRich38 RichyRich38 is offline
Newbie Coder
 
Join Date: Feb 2009
Posts: 73
Thanks: 2
Thanked 0 Times in 0 Posts
Have a look here, you might see something you like

http://www.smashingmagazine.com/2007...ern-solutions/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 04-23-09, 02:24 AM
harish harish is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by RichyRich38 View Post
Have a look here, you might see something you like

http://www.smashingmagazine.com/2007...ern-solutions/
Thanks for that site. But i have never found the source code on that site.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 04-23-09, 07:40 AM
RichyRich38's Avatar
RichyRich38 RichyRich38 is offline
Newbie Coder
 
Join Date: Feb 2009
Posts: 73
Thanks: 2
Thanked 0 Times in 0 Posts
I know, it will not give the code for each nav, but will link you to there site, where you can view the source code for your self, borrow bits you like.. Happy days..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 04-23-09, 11:36 PM
jLix jLix is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
If you want the drop down menu to work in IE6 you'll need JavaScript anyway, well unless you're willing to use invalid markup (tables in links etc.). Google for "suckerfish dropdown". And with a bit of tweaking the Javascript, you can make the menu accessible for keyboard navigation as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 04-24-09, 05:31 AM
harish harish is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by RichyRich38 View Post
I know, it will not give the code for each nav, but will link you to there site, where you can view the source code for your self, borrow bits you like.. Happy days..
I think you have not checked the site for each nav. I have checked all. there are no any source code.

Quote:
Originally Posted by jLix View Post
If you want the drop down menu to work in IE6 you'll need JavaScript anyway, well unless you're willing to use invalid markup (tables in links etc.). Google for "suckerfish dropdown". And with a bit of tweaking the Javascript, you can make the menu accessible for keyboard navigation as well.
you are wrong because drop down menu can be created with the use of css only also. the code posted by me is dropdown menu in css. But want it more attractive. but only using css.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 05-02-09, 03:08 AM
PHPLicengine PHPLicengine is offline
Newbie Coder
 
Join Date: May 2009
Location: Canada
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
in dynamicdrives.com you may find some JS scripts who creates drop downmenu with css.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Superfish jquery menu problems with modification transcend2005 CSS 2 03-25-09 02:30 AM
css problem with the scroll bar crazy.works CSS 0 11-04-08 06:34 PM
flash overlay css dropdown menu tmswm07 CSS 1 11-06-07 06:33 PM
CSS Menu tobyjoiner CSS 3 12-11-06 02:45 PM
Xml / Dom / Css Mark_SC.SE JavaScript 0 06-29-05 09:05 AM


All times are GMT -5. The time now is 10:36 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.