i’m trying to create a menubar with rounded corners, but when i add the float:left to the li elements, the rounded corners dissapear…
This is my code:
<ul>
<li>jkfasdf</li>
<li>jkfasdf</li>
<li>jkfasdf</li>
</ul>
ul{
background: red;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-left-radius: 5px;
}
li {
padding: 5px;
#float: left; #toggle this
}
If all you want to do is show your LI’s next to eachother, display: inline-block; might actually work better than floating the elements.