Create a Drop-down Menu with Dreamweaver CS4

How to create a cross-browser drop-down menu with Dreamweaver in minutes

Create drop-down menu with Dreamweaver

This is going to be short and the main purpose is to let you know Dreamweaver CS4 has a built-in functionality letting you create a good CSS-based drop-down menu in minutes. I’m not sure at what version Dreamweaver started to have this built-in drop-down generator. Perhaps it was from CS3.

The drop-down is CSS/text-based, very easy to customize and maintain and works well with different browsers even when you have a big Flash or image banner right underneath.

Use the Insert menu

All you need to do is go to menu Insert > Spry > Spry Menu Bar. Dreamweaver/Spry will display a pop-up asking you whether you want a vertical or horizontal menu. After selecting, you just need to play with the Properties panel in Dreamweaver to specify the number of levels your menu is going to have as well as how many sub-item under each main item and so on. Dreamweaver will create a web file [.html, .php, .asp...] , a CSS file [.css] and a Javascript file [.js] and put these 3 files in a folder. If you’ve already managed your website(s) with Dreamweaver [with Site > Manage Sites...], these 3 files will be put inside a folder under one of your managed website.

Create drop-down menu in Dreamweaver

 

Changing the drop-down properties

Briefly from the image above from the left to the right, you can specify:

  • The instance name of your drop-down menu: the instance name is the id [used in the accompanied CSS and Javascript] of your menu. You can have more than one instances of drop-down menu on a page. Each instance will have a separate id.
  • The properties of your first level: number of items, name and url of each item. You can easily add or delete any item by using the plus + or minus - sign. Initially and by default Dreamweaver automatically names individual items as Item 1, Item 2…, and you can easily change these name in the Properties Panel
  • The properties of your second level: The same as above

If you’re familiar with CSS, you can easily edit the CSS file such as changing the menu background colors, mouseover colors, text colors, menu width and so on.

Again, hope this helps! Feel free to post your question/comment.


7 Responses to 'Create a Drop-down Menu with Dreamweaver CS4'

Subscribe to comments with RSS or TrackBack to 'Create a Drop-down Menu with Dreamweaver CS4'.

  1. Dreamweaver/Spry is pretty good. I think it was available since CS3. Work pretty well and easy to skin/change colors of the navigation with CSS.

    Ben Marcus

    12 May 09 at 1:36 pm

  2. Thanks for the update. I was not aware that Spry is part of the CS4 package.

    Justin G

    13 May 09 at 5:37 pm

  3. Everyone else has these huge tutorials. This guy lets you know its built in and super easy !
    Thanks alot

    Wes

    30 May 09 at 12:31 am

  4. Very helpful information without trying to sell it to me.
    Thanks a lot I had the information needed to to do the navigation menu in seconds!!!!!!!!!!!!!!!
    To be honest all the other websites did not give me the information I needed.

    Kemweb

    4 Aug 09 at 5:16 pm

  5. hi thanks alot,
    but one problem in drop down horizantal menu, i need it should come drop up when over the button….because I given menu bar at the bottom of the web page….

    any one know how to customize the code..

    plz send me mail to this id : pavie003@gmail.com
    thanks..

    pavi

    20 Sep 09 at 6:45 pm

  6. Hi,
    I’ve added a spry horizontal drop down menu to a button on my top navigation bar. I have an image immediately underneath. How do I get the menu to go over the image? right now it’s pushing the button upwards so not inline with the other buttons. Any help will be appreciated. E-mail me on nasifab@hotmail.com.
    thx

    Nasi

    21 Oct 09 at 7:57 am

  7. Thanks alot.

    Rakesh Sharma

    13 Jan 10 at 11:00 am

Question, feedback or comment? Use the following form.

If you have a general suggestion, question, or comment not related to this post, please use the Contact us form.