Clear CSS
Posted: Tue Dec 18, 2007 9:30 pm
I have a menu define din my application it uses <ul> and <li>
Unfortunately it's a horizontal menu and I needed to float the elements..., the CSS looks like:
Now I'm using just the elements for another tree like control...and it looks like the <li> elements are inheriting what was set for the menu items...although none of the styling is being applied, such as colors, etc...just the float and inline type properties seem to be applied...
I've tried setting each <li> with an inline style="float: clear"
But that didn't seem to do the trick..
Should this be happening? I didn't apply any styles to the native <li> element but as I've shown above...
Unfortunately it's a horizontal menu and I needed to float the elements..., the CSS looks like:
Code: Select all
#menu ul {
}
$menu li {
float: right
...
}I've tried setting each <li> with an inline style="float: clear"
But that didn't seem to do the trick..
Should this be happening? I didn't apply any styles to the native <li> element but as I've shown above...