Log in

View Full Version : horizontal <li>



chechu
02-08-2012, 09:53 PM
Hey everyone,
Is it possible to have the items of a list appearing next to eachother instead of under eachother ?


<ul>
<li></li>
</ul>

I tried to work with "display:inline;", but it doesn't do the trick.

Thanks for helping out !

FrankieL
02-08-2012, 10:38 PM
For horizontal effect that is the correct way to do it - it should work.
Example:
#navbar ul li {
display: inline;
}

see:
http://www.w3schools.com/cssref/tryit.asp?filename=trycss_display_inline

chechu
02-08-2012, 10:49 PM
Then there must be an error somewhere else.
Thanks Frankie.