html lists
html lists
- Started
- Last post
- 7 Responses
- ********
hello everybody
i have this simple code:
<ul style="list-style-type: none;line-height: 0px">
<li>dfdsfs</li>
<li>sdfsdfsd</li>
<li>dsfsdfsd</li>
<li>dsfsdfsdf</li>
</ul>on ie it looks like this: dfddfdss (wich is fine because the line height is 0px);
but on ff and safari it is not a single line, how can i get same results on these browsers?
thank you
- brandelec0
you mean you want it to display horizontaly?
try this in your css
ul li {
float: left;
margin: 0 5px 0 0;
}
- brandelec0
line-height:0px on the ul doesn't really make sense
don't trust things that work in ie.. instead fix it on ie
- Shaney0
list-style: none;
display: inline;
- ********0
thank you guys
- ********0
Use a reset. Lists are a pain in the butt without one.