Results 1 to 3 of 3

Thread: Flex Level Drop Down Menu Width

  1. #1
    Join Date
    Jul 2005
    Posts
    67
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Flex Level Drop Down Menu Width

    1) Script Title: Flex Level Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...exdropdown.htm

    3) Describe problem:

    The script is great, I just would like to modify the 1st dropdown menu width and be able to modify the 2nd level (sub-menu) dropdown menu.

    ie.

    ->I'd like to make the initial drop down width=140px
    -> Second level (sub-menu) should be width=200px.

    Any help would be greatly appreciated.
    Thanks!
    Martin

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The width of the menus is set by the widths of the inner link elements (A). This means to modify the widths of a particular sub menu for example, you should modify the widths of that sub menu's A elements. For example:

    Code:
    <!--HTML for Flex Drop Down Menu 1-->
    <ul id="flexmenu1" class="flexdropdownmenu">
    <li><a href="#">Item 1a</a></li>
    <li><a href="#">Item 2a</a></li>
    <li><a href="#">Item Folder 3a</a>
    	<ul class="customwidthz">
    	<li><a href="#" style="width:190px">Sub Item 3.1a</a></li>
    	<li><a href="#" style="width:190px">Sub Item 3.2a</a></li>
    	<li><a href="#" style="width:190px">Sub Item 3.3a</a></li>
    	<li><a href="#" style="width:190px">Sub Item 3.4a</a></li>
    	</ul>
    </li>
    <li><a href="#">Item 4a</a></li>
    <li><a href="#">Item Folder 5a</a>
    	<ul>
    	<li><a href="#">Sub Item 5.1a</a></li>
    	<li><a href="#">Item Folder 5.2a</a>
    		<ul>
    		<li><a href="#">Sub Item 5.2.1a</a></li>
    		<li><a href="#">Sub Item 5.2.2a</a></li>
    		<li><a href="#">Sub Item 5.2.3a</a></li>
    		<li><a href="#">Sub Item 5.2.4a</a></li>
    		</ul>
    	</li>
    	</ul>
    </li>
    <li><a href="#">Item 6a</a></li>
    </ul>
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    martino (03-15-2010)

  4. #3
    Join Date
    Jul 2005
    Posts
    67
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    that worked, thank you very much!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •