View Full Version : Second ddlevelsmenu-topbar same line

02-25-2009, 12:55 PM
1) Script Title: ddlevelsmenu

2) Script URL (on DD): i think http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/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.


02-26-2009, 12:25 AM
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:

<div id="ddtopmenubar" class="mattblackmenu">
<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>