Dropdown Menu CSS Style

Hi!
I am trying to create a dropdown menu in Dreamweaver. I have watched several tutorials and read many how-to guides and my html looks fine, but editing the style is really throwing me off. I am a beginner to Dreamweaver, so I am unsure of the properties I need to make this right.  The code below, when I hover over the first button the dropdown menu goes behind the other two buttons.  I need the dropmenu to go off to the side of the buttons and down.  If not that, I can align the buttons to go horizontal, so they aren't being covered. I hope that makes sense.
Thank you in advance!! 
-M
HTML
  <div class="dropdown" id="dropdown" style="text-align: left;">
<ul>
        <li><a href="#">Americas</a>
           <ul>
                   <li><a href="#">Connecticut</a></li>
                    <li><a href="#">Ohio</a></li>
                    <li><a href="#">Vermont</a></li>
                    <li><a href="#">California</a></li>
                    <li><a href="#">Canada</a></li>
                    <li><a href="#">Brazil</a></li>
           </ul>
        </li>
</ul>
  <ul>
       <li><a href="#">China</a>
             <ul>
                     <li><a href="#">China</a></li>
               </ul>
        </li>
</ul>
<ul>
        <li><a href="#">Europe</a>
            <ul>
               <li><a href="#">France</a></li>
               <li><a href="#">UK</a></li>
            </ul>
        </li>
</ul>
</div>
STYLE
#dropdown {
margin: 0;
width: 150px;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
#dropdown ul {
margin: 0;
padding: 0;
line-height: 30px;
#dropdown li {
    margin:0;
    padding:0;
    list-style:none;
    float:left;
    position:relative;
#dropdown ul li a {
text-align: center;
height: 30px;
width: 150px;
display: block;
color: #000;
text-decoration: none;
border: 1px solid #000;
text-shadow: 1px 1px 1px #000;
background: #CCC;
#dropdown ul ul {
position:absolute;
visibility:hidden;
top:32px;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  #dropdown ul li:hover ul {
visibility:visible;
position:absolute;
   #dropdown li:hover {
background: #7D92C6;
float: left;
    #dropdown ul li:hover ul li a:hover {
    color:#000;
    background:#7D92C6;
  #dropdown a:hover {  
  color:#000;
  background: #7D92C6;
.clearFloat {
    clear:both;
    margin:0;
    padding:0;

Are you doing this as an execise in learning or is it for a real website. I ask because if the latter why not just use a tested and proven commercial product and be done with it?  I have used the PVII (http://www.projectseven.com) products for years and can't recommend them highly enough.

Similar Messages

  • Horizontal dropdown menu/css

    Have worked out a horizontal menu using css but I'm stuck with the drop down part. There are two areas that drop down, one under Data Entry and the other under Reports. So far the only style used is display: inline;.View the file --> http://classreunionprogram.com/test_css/css.menu.htm
    Also get a validation error because of ignorance of how to.Any help is great.
    Thanks.

    Is this what you had in mind?
    http://alt-web.com/DEMOS/CSS2-Horiz-Drop-Menu.shtml
    NOTE: Pay close attention to how the list mark-up is laid out.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Keyboard shortcuts to indivudual CSS styles

    Hello!
    I have a css style I would like to use through a keyboard
    shortcut
    I tried the following:
    * assign a keyboard shortcut to this style through the
    keyboard shortcut menu (CSS-styles section), but there the
    individual CSS styles do not show.
    * record a command (from the history steps) that assigns
    this style and then assign a keyboard shortcut to this new
    command from the
    commands manu - but user defined commands do not appear
    there. in the shortcut assigning
    menu
    Is there something I did not try and will give me the desired
    shortcut?
    Thanks

    So - I don't think you can apply a custom class with a
    keyboard shortcut.
    Frankly, if you have zillions of times you have to do this on
    a page, then
    you are not using CSS most efficiently anyhow.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "michaelprem" <[email protected]> wrote in
    message
    news:fnmjqu$65k$[email protected]..
    > Thanks for your reply.
    >
    >
    > > I'm not sure what it is you are trying to do. Can
    you explain again,
    > > please? Is it that you want the keyboard shortcut
    to apply the style to
    > > the
    > selected
    > > element?
    >
    > Yes. This is what I am trying to do.
    >
    > Thanks!
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "michaelprem" <[email protected]> wrote
    in message
    > news:fnc1q9$cqt$[email protected]..
    > > Hello!
    > >
    > > I have a css style I would like to use through a
    keyboard shortcut
    > >
    > > I tried the following:
    > >
    > >
    >
    > assign a keyboard shortcut to this style through the
    > > keyboard shortcut menu (CSS-styles section), but
    there the
    > > individual CSS styles do not show.
    >
    >
    > >
    > >
    >
    > record a command (from the history steps) that assigns
    > > this style and then assign a keyboard shortcut to
    this new command
    > from
    > > the
    > > commands manu - but user defined commands do not
    appear there. in
    > the
    > > shortcut
    > > assigning
    > > menu
    >
    >
    > >
    > > Is there something I did not try and will give me
    the desired
    > > shortcut?
    > >
    > > Thanks
    > >
    >
    >

  • Adding a link to a CSS Dropdown Menu

    Hello all:
    I am fairly new to the world of CSS and am having some
    trouble. I found a CSS menu online and styled it to look correctly.
    But now I need to add some functionality to it and can't quite get
    my head around how to do this (trial and error has not been working
    =)
    If you take a look at the following link, I would like to
    creat a link out of each of the big square buttons. "Specials",
    "Chicago Souveniers", etc.
    http://gdsquared.com/clients/souvenir/mm5/home.htm
    The corresonding CSS file can be viewed at this link. The
    beginning of the navigation bar is commented out as, ----- NAV:
    START------
    http://gdsquared.com/clients/souvenir/css/style.css
    Currently when I add a href into the <li> it starts to
    take on the properties of the submenus.
    If someone could offer any help, it would be greatly
    appreciated.
    Thank you
    - Garrett

    "gbowhall" <[email protected]> wrote in
    message
    news:ff3uvd$1ko$[email protected]..
    >I believe I followed the logistics of what you were
    saying, but I didn't
    >quite
    > figure out how to apply that to splitting them up. How
    do I pull them
    > apart
    > from each other (if that's what you were implying) so I
    can make each its
    > own
    > separately styled link? I apologize for my newbie-ness
    here.
    You don't pull them apart, it's the opposite, you need to
    *nest* them
    properly
    <ul>
    <li>
    <ul>
    <li></li>
    <li></li>
    <li></li>
    </ul>
    </li>
    <li>
    <ul>
    <li></li>
    <li></li>
    <li></li>
    </ul>
    </li>
    <li>
    <ul>
    <li></li>
    <li></li>
    <li></li>
    </ul>
    </li>
    </ul>
    As you can see, the sub-menus need to be within LIs. ULs do
    not "sit" next
    to each other inside the main UL
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php
    - divaGPS - Add "you are here" highlighting to virtually any
    menu
    - divaFAQ - Create FAQ pages that toggle (show/hide) the
    answers
    - divaPOP - Easy, clean, standards-compliant popup windows.

  • I'm using web developer1.1.9 ad-on. When I select a menu CSS- View Style Information, I see red outlined div's, etc. but I can't see these outlines anymore.

    I'm using web developer1.1.9 ad-on. When I select a menu CSS->View Style Information, I see red outlined div's, etc. but I can't see these outlines anymore.
    I tried uninstall and install both Firefox and Developer ad-on but it did not solve the problem.

    Firefox also have build-in web developer tools, so there is less need for extensions.
    *http://hacks.mozilla.org/2012/03/firefox-aurora-13-developer-tools-updates/
    *https://developer.mozilla.org/en/Tools/Page_Inspector
    *https://developer.mozilla.org/en/Tools/Page_Inspector/HTML_panel
    *https://developer.mozilla.org/en/Tools/Page_Inspector/Style_panel

  • WAD - Possible to embed RRI commands in CSS style menu?

    I'm not content with the standard web item options in WAD and was hoping I could create my own menu using CSS style commands and then embed the BI:ACTIONs within the list links.  Is this possible?  I've got the list created within WAD, but can't find anything out there on how and what BI commands to embed.  Any help or alternative suggestions appreciated.  Thanks.
    Ivano

    FYI, I found one simple way to do this.  You can use the web item "Link", define the RRI or other set of BI actions you want to perform within that in the Layout side of WAD.  Then, within the XHTML portion you can cut this relevant snippet of BI command code and place it under the CSS-style menu you're trying to create.  In my exmaple, I styled a drop-down list and was able to have this as action as a link within the sub-menus.  For example, here's the list portion:
    <ul >
                            <li >
                                <bi:LINK_ITEM name="DISTRIBUTIONMETRIC" designheight="23" designwidth="200" >
                                    <bi:TEXT_CONTENT value="Distribution Metric" />
                                    <bi:ACTION type="CHOICE" value="INSTRUCTION" >
                                        <bi:INSTRUCTION >
                                            <bi:RRI >
                                                <bi:TARGET_DATA_PROVIDER_REF value="%NM%" />
                                            </bi:RRI>
                                        </bi:INSTRUCTION>
                                    </bi:ACTION>
                                </bi:LINK_ITEM>
                            </li>
                            <li >
                                <a href="#" >Volume Metric</a>
                            </li>
                            <li >
                                <a href="#" >Marketshare</a>
                            </li>
                            <li >
                                <a href="#" >Standard Operating Reports</a>
                            </li>
                            <li >
                                <a href="#" >MPS Reports</a>
                            </li>
                        </ul>
    Edited by: ivanoharris2 on May 12, 2010 10:20 PMd

  • IE 7 - CSS Issues with Spry dropdown Menu *HELP*

    I am using a spry horizontal dropdown menu generated in DW. The menus look consistant in all other browsers except ie7 -  When the drop down menu occurs they all appear to the right and not directly under its menu item.. Looked around in the Css and i cant seem to find the right rule to make the change in ie7 only... was planning on using a css conditional statement to shift them left.. But im not having any luck.. HELP!
    Thanks so much in advance!

    Sorry.. Here is the link.. Thanks so much for your willingness to help!
    http://soldesign.us/_working/WEBSITE_BoulderPlasticSurgery/index.html

  • CSS (Responsive) Horizontal Dropdown Menu (Alignment)

    I am styling a Responsive CSS Horizontal Dropdown Menu (for hours now), and can not get the main menu headings (Directory, Resources, etc) to align left (even) with the logo and content divs. I would also like the submenu headings (Learning & Games) and items (Catch the Bullet, Snoopydoo, etc) to align left (even) with the logo and content divs. - Like I am trying to do with the main headings. --I am trying to get the logo, main menubar heading, and menubar subheading to all align the same left.
    (Optional) I am considering on not having the gray menuboard span the whole screen when opened. Not sure if this would look good, but even more unsure how to keep it in the 90% container the menubar is located in.
    Here is the site for code:
    http://dothopper.com/index.html
    Thanks for any help.

    Another great tip. Never cease to amaze. Thanks . I uploaded the new CSS with red border and looked at somewhat. It seems very helpful, but like this navbar, I'm gonna have to spend some time with. I think this may help me to figure the problem. This is a really GREAT trick, thanks. If you appen to look at my site, and see anything relevant to getting the element to shift left, let me know.
    BTW, crammed some more learning recently (Mostly Dreamweaver, little HTML STructure, and JQuery). Going to try to not use as many divs, (use HTML tags and class selectors). Trying to use captions in my HTML and CSS for organization and understanding. Making copies of all my CSS, JS, and HTML. Set my areas (divs) up as 'section,aside,article,and footer'?--Tried adding metatag info (I think I missed 1 part of the metatag (they wanted a value?). Not sure if my metatagging is correct? Let me know of any advice what I'm doing right/wrong so far.
    I taught myself to design using divs like tables somehwat. With the correct way of design (not using alot of divs)..how would I handle this?...
    My old page (method), I had several,divs:  3- (content75%) and 3- (image25%) all housed within a div (approx 900px). Content was left, and images right. Total DIV that housed them was 75% of 1232px page? (I think)..The div that housed them was approx 900px (.75x1232). Content approx 675px and image approx 225px wide.
    I inseted 480px wide images in that 25% image div and it showed it nicely as approx 225px wide on desktop, and when responsive on mobile, nice full size at 480px. (I think I am/was avoiding having to use alternative images--for each platform-- this way?)
    With the correct way of designing (less divs), how would I handle this scenario above? IF I inserted a 480px image into a approx 900px div with no other divs, it would fill the div with a 480px image. IT would then throw my wole design off. I think I'm just missing some HTML/CSS knowledge. Hope this question makes some kind of sense?

  • CSS - Vertical Dropdown Menu

    Hey guys.
    I need the CSS for a vertical menu much like the one on the
    Adobe Homepage under 'Products and
    Solutions' where more data is revealed when the title is scrolled
    over.
    If anybody has links to a tutorial or even have one of these
    menus I could possibly have a look at it would be much appreciated.
    Cheers in advance.

    Hello,
    This is a nice CSS dropdown menu tutorial:
    http://projectseven.com/tutorials/navigation/auto_hide/index.htm
    And another:
    http://www.tjkdesign.com/articles/dropdown/
    example of menu:
    http://www.tjkdesign.com/articles/keyboard_friendly_dropdown_menu/EK.asp
    Take care,
    Tim
    "ForensicBop" <[email protected]> wrote in
    message
    news:g54p5j$nke$[email protected]..
    > Hey guys.
    >
    > I need the CSS for a vertical menu much like the one on
    the Adobe homepage
    > under 'Products and Solutions' where more data is
    revealed when the title
    > is
    > scrolled over.
    >
    > If anybody has links to a tutorial or even have one of
    these menus I could
    > possibly have a look at it would be much appreciated.
    >
    > Cheers in advance.
    >

  • CSS Style drop down menu (contribute 3.11)

    Hi,
    I am having a problem viewing any styles in the styles drop
    down menu at the top of my page when editing.
    I am the administrator of the site and I set up the options
    like this:
    Administrator settings > Styles and fonts >
    Document level CSS (pull down)
    First 3 checkboxes checked, and show only CSS styles included
    in this CSS file (browsed and selected a css file with a single
    style).
    Checked the remainding 3 checkboxes
    No matter what I do I have not been successful in ever seeing
    a style of my own within this list.
    I have tried...
    1) Not using a secure site
    2) Allowing a different user on a different PC to attempt to
    create a new page
    3) Locating the stylesheet in many different locations
    4) Hardcoding the styles into the template
    5) Show all styles (which wouldn't work anyway since the
    pages are PHP based)
    6) Banging head violently against wall.
    I should mention that I am using a PHP based template which
    works fine apart from this styles drop down menu.
    Please please please help (asap)!
    Thanks,
    Dan.

    dotcom012 wrote:
    > I have a web site that uses a javascript and a style
    script to
    > control some drop down menus at the top, each page has
    to have this
    > in the <head> area. Is there a way to make say a
    CSS so that i can
    > say update that one page if say a link needs to be
    changed or added
    > so i don't have to go to each of the 120 pages to change
    the menu! So
    > far right now, i have to go to each page, go into the
    javascript code
    > and update the link or whatever. Is there an easier way?
    You may want to read this article, it shows how to use
    external files (CSS,
    SS-Includes, JS, etc):
    http://www.tjkdesign.com/articles/maintenance.asp
    HTH,
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    CSS Tab Menu:
    http://www.TJKDesign.com/go/?3

  • Long Vertical CSS dropdown menu goes off screen

    Greetings,
    I developed a dropdown menu using Spry (Adobe Dreamweaver). It is a  vertical menu with multiple sub-menus. Some lists are very long and the  menu goes below and off the page.
    I found a great example of what I want my menu to do: http://coins.shop.ebay.com/
    On the side, it says "Browse By:" and there is a vertical menu. If I  shrink the page up vertically a little and watch the sub-menus pop out, I  notice they get pushed up if the parent is close to the bottom of the  screen, which ensures that none of the options go off the page, they get  pushed up.
    How can this be done?
    Thanks

    Have a look here http://pleysier.com.au/mike/
    Maybe this is for you.
    For the accordion I have used jQuery UI Accordion for Widget Browser which can be found here http://emea-events.wip4.adobe.com/cfusion/exchange/index.cfm?event=ext ensionDetail&loc=en_us&extid=2028523
    If  you are using DWCS4 or 5, then you can easily incorporate the widget,  if not then it is a matter of copying and pasting the code.
    Gramps

  • Add a Property Dropdown menu in CSS panel, not showing all properties?

    Hi,
    So, I am sitting side by side at 2 machines...I have the same CSS style I created for a table. On the one machine, I go to add a property and choose border-collapse. All is fine. I go to the other machine and border-collapse is not there? Then, I realized the entire list is much shorter and is missing many properties? The shorten list starts with the background property...The long list on the good machine, starts with alignment-adjust (in other words, I am missing any property that starts with the letter a...plus many more).
    I trashed preferences but that didn't help.
    Has anyone else come across this problem?
    thanks
    babs

    HI Murray,
    Sorry for the late reply...was one of those weeks....
    Anyhow...Both DW apps are running CS5? Ironically, U never checked my home machine also running 5, and my CSS panel also starts with background properties. So I am missing a bunch of them as well. It's very odd. The inly thing I can think of, Is I purchased a few CSS templates to work with and I wonder, if when I loaded them on that computer, they added those extra css properties?
    It's a mystery.....

  • Dropdown menu in APEX 4.0

    Hi,
    I am wondering how to create the Dropdown menu in APEX 4.0. Similar to the Oracle Application Express Homepage or the one gets created in any Websheet Application. I have tried to use the List but unable to place into the right position (Display Point) to get similar look and feel in Theme 2. Builder Blue.
    Please let me know if there is a easy way along with the steps.
    Thanks,
    AS

    The steps can be detailed as follows (I will make it specific to my theme -Application Builder- and you can replace what you want)
    0) a) My Page template name is WithNicolettePlugin.
    b) Put the Nicolette (Thanks alot for him) plugin on #REGION_POSITION_08# in Page Zero (Global page)
    c) the settings of the plugin as follows:
    - Template : WithNicolettePlugin
    - Before HTML : <ul class="dhtmlMenuLG2"> - After HTML : </ul> - jQuery selector submenu : .dhtmlSubMenu2
    - Tab set : main
    - Include single subtab : yes
    - Class first parent : ui-corner-left
    - Class last parent : ui-corner-right
    - File Prefix : #IMAGE_PREFIX#
    the others are empty     
    1) link the following CSS's into the Header section of the Page Template of (Bluejay-22)
    <link rel="stylesheet" href="/i/css/apex_builder.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui_builder_home.css" type="text/css" />2) link the following Scripts into the Header section of the Page Template
    <script type="text/javascript">
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    </script>
    <script src="/i/libraries/apex/minified/desktop_all.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/legacy.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <style> html {visibility:hidden;} </style>
    <script type="text/javascript">
    apex.security.framebreaker("D");
    </script>
    <script src="/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/builder.min.js?v=4.2.0.00.27" type="text/javascript"></script>3) Re-write the Body section to be as the following
    <div id="page-header">
      .... LOGO AND WELCOME HERE ...... 
       <div class="apex-top-bar-end">
           <div class="apex-top-bar">
                <div id="tabs" class="dhtmlMenuLG">
                  #REGION_POSITION_08#   <!-- Put the plugin at your page zero in REGION 8 -->
                </div>
           </div>
       </div>  
    </div>
    <div id="topbar">#REGION_POSITION_01##REGION_POSITION_04#</div>
    <div id="messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#</div>
    <div id="body">
        <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
            <td class="tbl-sidebar">#REGION_POSITION_03#</td>    
          </tr>
        </tbody>
        </table>
    </div>4- Update the section of Standard Tab Attributes to have Current Tab as the following *(PLEASE, REMOVE THE MINUS BEFORE onmouseover)*
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
         title="#TAB_LABEL#">
         "#TAB_LABEL#
      </a>
    </li>
    {code}
    and Non Current Standard Tab as the following
    {code}
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
          title="#TAB_LABEL#">
          "#TAB_LABEL#
      </a>
    </li>5- Update the section of Parent Tab Attributes to have Current Parent Tab as the following
    <div id="#TAB_ID#" class="current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>and Non Current Parent Tab as the following
    <div id="#TAB_ID#" class="non-current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>6- You will find a sample here in
    Workspace : ralab
    User : nicolette
    Password : abc123
    Application 33791 - TestDropDownAppBuilderTabs
    If the post completes your solution mark it as correct and the question as answered, otherwise, mark it as helpful.
    Best Regards
    Mahmoud

  • Creating a vertical dropdown menu that displays inline

    I would like to change how my dropdown menu displays.  First I'd like for it to dropdown directly underneath its menu item and in the process move the other links down.  And remain visible until it is clicked again, thereby shifting other links back up.
    Here is what I am trying to accomplish:
    Main menu:
    main link 1
    main link 2
    main link 3
    main link 4
    Then when user clicks on a link:
    main link 1
       sub item
       sub item
       sub item
    main link 2
    main link 3
    main link 4
    And for it to remain displayed like the above until clicked again.
    So in essence it could even look like this as a user is navigating:
    main link 1
       sub item
       sub item
       sub item
    main link 2
       sub item
       sub item
       sub item
    main link 3
       sub item
       sub item
       sub item
    main link 4
       sub item
       sub item
       sub item
    And then each submenu disappear as its main link is clicked again.
    Hope this makes sense and hope someone can help.
    Thanks!
    P.S. Im using Dreamweaver CS6

    Bare bones example: (needs styling with css) (if you want a bit more of a smooth animation use - $(this).find('.sub_menu').slideToggle(); instead of $(this).find('.sub_menu').toggle(); in the jQuery script below highlighted in red
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>jQuery Drop Down Menu</title>
    <style type="text/css">
    ul {
    margin:0;
    padding:0;
    list-style-type:none;
    /* hide sub menu */
    .sub_menu {
    display: none;
        /* indent sub menu */
    .sub_menu li {
    padding-left: 10px;
            </style>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('.menu').click(function() {
    $(this).find('.sub_menu').toggle();
    </script>
    </head>
    <body>
    <ul id="navigation">
    <!-- menu 1 -->
    <li class="menu"><a href="#">Menu 1</a>
    <ul class="sub_menu">
    <li><a href="#">Sub Navigation 1</a></li>
    <li><a href="#">Sub Navigation 2</a></li>
    <li><a href="#">Sub Navigation 3</a></li>
    </ul>
    <!-- menu 2 -->
    </li>
    <li class="menu"><a href="#">Menu 2</a>
    <ul class="sub_menu">
    <li><a href="#">Sub Navigation 1</a></li>
    <li><a href="#">Sub Navigation 2</a></li>
    <li><a href="#">Sub Navigation 3</a></li>
    </ul>
    <!-- menu 3 -->
        </li>
    <li class="menu"><a href="#">Menu 3</a>
    <ul class="sub_menu">
    <li><a href="#">Sub Navigation 1</a></li>
    <li><a href="#">Sub Navigation 2</a></li>
    <li><a href="#">Sub Navigation 3</a></li>
    </ul>
        </li>
    </ul>
    </body>
    </html>

  • Dropdown menu problem in internet explorer

    i'm pretty new to css, and i'm having trouble in regards to
    the dropdown menu option (dreamweaver cs3). i've made a basic
    template, and everything looks fine (preliminarily!) in firefox,
    but in IE the dropdown menus have scrollbars and the word "false"
    floating in them. they're also positioned wrong. any advice on
    which styles are the problem? i've tried troubleshooting but its
    had little effect. here is the link:
    http://happyowlglass.com/happyowl-template.html
    many thanks!

    Have a look at the following
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
        display: inline;
        f\loat: none;
        background: #FFF;
    The original value is left.
    Gramps

Maybe you are looking for