Posts: 310
Name: Jason Eyermann
Location: england bristol
|
Can anybody solve what I thought was a simple issue. I have some generated dynamic code (html shown below) that depending on what option is chosen there may not be a value between some of the <li></li> tags. Safari and firefox closes this up as if there was no text there, which is what I want. But in IE6 (i've not checked IE7 yet) the space remains there.
In IE6 it looks like:
text 1
text 2
but I need it to be
text 1
text 2
I've been trying to figure out how. I think I've tried everything. Thanks people.
Code:
<style>
ul {
list-style: none;
}
li {
padding: 0;
}
</style>
Code:
<ul>
<li>Text 01</li>
<li></li>
<li></li>
<li>text 02</li>
</ul>
Last edited by jason_bristol; 01-15-2009 at 07:13 PM..
|