DivitoDesign

Everything for the Web Professional

Vertical CSS Menu With a ‘Behavior’ File.

Information about the Author:

Name:

URL: http://twitter.com/divitodesign

Description enjoy design, write articles, like typography, love football, keep chilling.

More on: CSS

58 Comments

  1. can it be used ad horizontal menubar aswell?

  2. This time it is a Vertical tutorial. I will publish a horizontal version very soon.

  3. Sio says:

    Thanks for the tutorial.

    IE is making web designer more work to do.

  4. Rashidah K Vire says:

    Thanks very much i was looking for this menu style forever and you have shown me the easiest way to do it thank you.

  5. [...] this tutorial a bit easier, I choose to use a standard list, without a submenu. Read more about a menu with a submenu. <ul> [...]

  6. Thank you very very much pal

  7. That menu is very simple indeed. I’ve never seen a behavior file used that way though. I’m just wondering how compatible that menu system is.

  8. klughing says:

    How do you make the top menu stay highlighted as we go through the sub-menus of that top menu?

  9. Aseel says:

    Thanks for your tutorial , it’s help me a lot.
    I used this menu inside table and it’s work well in ie6, ie7 , but in Firefox the submenu didn’t appears well, is there any solution ? please help

    Thanks again

  10. Prajith says:

    Even though your example is a simple menu, its clean. I was looking for a horizontal menu.

  11. [...] a large stream of requests for the horizontal, drop-down version of the Vertical CSS menu tutorial, I will write a tutorial covering all the basic points of building a horizontal drop-down CSS [...]

  12. Thanks your tutorial again.
    Good luck !

  13. Kelly says:

    Stefan,

    Thanks so much for this post. I’ve started to get involved in wanting to customize parts of my site, and this kind of coding tutorial makes a lot of sense. Gonna take a look around for more jems here!

    Kelly

  14. Per Karlsson says:

    Thanks, great tutorial.
    Just one thing, this menu system seems to work exactly the same withouth the use of the behaviour file. I’ve tried it in IE, Firefox and Opera and none of them display anything different without the behaviour file, so what exactly is the purpose of it?

  15. Samantha says:

    I thought it was something wrong with me, but your site is broken in Firefox! Thanks for the tutorial, very useful for a beginner like myself.

  16. nadz says:

    thx buddy will try it for sure as very less people use it on blogs. will be helpful for my readers for sure to navigate

  17. Ali says:

    Haw can we change the position of submenus from right to left?

  18. Yousef says:

    Thanks very much i was looking for this menu style forever and you have shown me the easiest way to do it thank you.

  19. Praveen says:

    I was searching this Widget for along time.Finally i got a working Code from here.
    Thx a lot !!!

  20. Red says:

    Thanks much for the tut..I was redoing some template work on a BANS site IM doing, and was trying to figure out how to fix the menu.

  21. Ruby says:

    It’s not working in IE 6
    Please help me.

  22. Rashmi says:

    Thanks,

    The code helped me a lot.

    Regards
    Rashmi

  23. MagicMan says:

    don’t know what I’m doing wrong but the submenus do not show in IE. It’s working fine in all other browsers. please help !

  24. Chip says:

    Vertical CSS Menu With a ‘Behavior’ File for thanx.

  25. John says:

    Nice tutorial. Easy to follow, cheers.

  26. Lily says:

    didnt quite work with me :( maybe im getting sth wrong. thanks anyway

  27. [...] Vertical CSS Menu With a ‘Behavior’ File [...]

  28. santlal says:

    can u give me the css code for the menu which shown on top left side
    which contain category list

    • In DivitoDesign’s sidebar?

      • santlal says:

        ya the category list which shown on left side on Divito Design’s page

      • 1
        2
        3
        4
        5
        6
        
        div.cats{				display:inline; overflow:hidden; float:left; background:#DDBFB7; width:206px; margin-bottom:25px; padding:0 0 10px 0; }
        	div.cats h3{			margin:15px 0 7px 15px; font-size:1.25em; width:180px; float:left; color:#000; clear:both;}
        	div.cats ul{			clear:both; float:left; }
        	div.cats ul li{			float:left; margin:0 15px; width:176px; border-top:1px solid #C6ABA4;  }
        	div.cats ul li a{		padding:5px 0 5px 15px; background:url(images/arrow-b.png) 0 10px no-repeat; font-size:1.05em; line-height:1.3; display:block; color:#6F4A3E; text-decoration:none; font-weight:normal; }
        	div.cats ul li a:hover{	text-decoration:underline; background:#C6ABA4 url(images/arrow-b.png) 0 10px no-repeat; color:#000; }
  29. santlal says:

    ty Mr.Stefan Vervoort thanks a lot
    I really need that one

  30. Kate says:

    Hello, and thank you for sharing this code :)
    I have one small problem, though. I can’t get the links to stop being underlined. I’ve tried putting “text-decoration: none” in all the css bits, but I can’t seem to work it out.

    I would really appreciate a response,

    Thank you.

  31. Scott says:

    What program do I use to open this RAR file up? I use a mac.

    thanks
    Scott

  32. [...] 41. Vertical CSS menu with a ‘behavior’ file [...]

  33. Hello,
    I wonder if there is a way to show a submenu inside a submenu ? That is the html code looks like

    I tried adding lines in CSS

    1
    2
    3
    4
    5
    6
    7
    
    ul li:hover ul li ul{
    display: block; /* Make sure the submenu is displayed as blocks as well. */
    left:200px; /* Your menu width. The submenu appears there, when you hover a menu
     item. */ }

    or ul li:hover ul li:hover ul or
    ul li ul li:hover ul and nothing works :(

Please Respond and Give your Opinion

We use Gravatar to handle our avatars. Get one there!