...

View Full Version : UL must not have any linebreaks



codingmasta
12-20-2006, 07:22 PM
HELP!
I hate breaks to have lines. this is my code:


<ul>
<li>some text here</li>
</ul>
<ul>
<li>some text here</li>
</ul><ul>
<li>some text here</li>
</ul><ul>
<li>some text here</li>
</ul><ul>
<li>some text here</li>
</ul>

whizard
12-20-2006, 07:32 PM
HTML:


<ul>
<li>some text here</li>
<li>some text here</li>
<li>some text here</li>
<li>some text here</li>
<li>some text here</li>
</ul>


Dan

nikkiH
12-20-2006, 07:58 PM
If you need the nested ULs, for example some of the popular menus out there, you can also set display to inline rather than block in your CSS.

Arbitrator
12-20-2006, 08:11 PM
Your code doesn’t make sense since a list of one item is not a list. Still, the way you would make all of that text flow onto one line would be CSS:


ul, li { display: inline; }



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum