Drop Down Menu / Posts /

2 sub menu links on same line

-2
Having two sub menu links on the same line, I've seen this answered but I can't find it again.
Larry Molineux  10 years ago   viewed: 11003    

1 Answer

1
Look at the sub menu items demo 1, demo 2, ect in the top menu of this website, they are in the same line.

Check out its HTML code, you will see:
<div class="inline">
    <a href="/slider/javascript-image-slider-demo1">Demo 1</a> &nbsp;
    <a href="/slider/javascript-image-slider-demo2">Demo 2</a> &nbsp;
    <a href="/slider/javascript-image-slider-demo3">Demo 3</a>
</div>

And check out its CSS code, you will see:

/* Allow inline links
--------------------------------------------*/
#ddmenuMst div.column div.inline
{
   line-height:20px;
   padding:0; margin:0;
}


#ddmenuMst div.column div.inline a
{
   display:inline;
}

Milo   10 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: