You can resolve this by using the border-radius
property. Since only the borders on the element are needed, you use the specific properties for each side ( border-radius
is simply a shortened version of the 4 for each side.)
.tab {
width:70px;
height:30px;
border:1px #ccc solid;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
display:inline-block;
}
<div class="tab"></div>
<div class="tab"></div>
<div class="tab"></div>
I gave an update to your JSFiddle code: link . Note that I took some unnecessary things, like the leading edge on ul.tabs
.
To learn more about the property: link