Results 1 to 2 of 2

Thread: Second ddlevelsmenu-topbar same line

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Second ddlevelsmenu-topbar same line

    1) Script Title: ddlevelsmenu

    2) Script URL (on DD): i think http://www.dynamicdrive.com/dynamici...menu/index.htm

    3) Describe problem:

    We are successfully using the dropdown menu topbar but we want to put some text on the same row (right aligned) ie imagine menu drop down options
    one, two(menu), three(menu), four, five as follows:

    one two> three> four five this text is right aligned

    but when I add a ddlevelsmenu.setup("ddtopmenubar", "topbar") using a right-aligned css, I am getting a new line ie
    one two> three> four five
    this text is right aligned

    but I would like to have everything on same line.

    In the CSS I tried modifying all occurrences of display: block to
    display: inline but to no avail.

    Any help appreciated.

    Regards
    Last edited by ddadmin; 02-26-2009 at 12:22 AM.

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

    Default

    If you simply mean having one of the main menu items appear to the very right of the menu bar, try adding float:right to it in the HTML, for example:

    Code:
    <div id="ddtopmenubar" class="mattblackmenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Home</a></li>
    <li style="float:right"><a href="http://www.dynamicdrive.com/new.htm" rel="ddsubmenu1">DHTML</a></li>
    <li><a href="http://www.dynamicdrive.com/style/" rel="ddsubmenu2">CSS</a></li>
    <li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
    <li><a href="http://tools.dynamicdrive.com/" rel="ddsubmenu3">Web Tools</a></li>
    </ul>
    </div>
    DD Admin

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
  •