I am trying to make my horizontal menu have round edges, however the inner "li" elements seem to overlap the div layer.
Here is an example for what I mean:
<div class="menu">
<ul>
<li>Home</li>
<li>Test</li>
<li>Test 2</li>
</ul>
.menu {
background-color:#CCC;
border-radius:10px;
border:1px solid black;
z-index:9999999;
}
ul {
list-style-type:none;
margin:0;
padding:0;
z-index:-9999;
}
li {
display:inline;
background-color:red;
z-index:-9999;
}
Here is the fiddle http://jsfiddle.net/3zeUg/ Have a look at the very left li element, it overlaps with it's square border into the round border.
I tried setting z-indexes without any success. I also tried giving the li elements a round border, but then each of the elements has a round border, which I don't want and since I am working on a wordpress theme, I should stick to the standards that are given.
I came across this website here: http://mypeoplesrock.com/ and in the menu you can see he has round borders but the inside element doesn't overlap. Looking at his css file, I can't seem to find what he did differently.
Thank you