I want to make a menu, in which the ends of the menus overlap and they have curved borders and slightly slanting edges.
Without using a background image, is it possi
I think I've solved It.
DEMO
Here is What I've added to The Code given at: http://css-tricks.com/tabs-with-round-out-borders/
I've Just added, background-color property to pseudo element :before and :after of .active li's css.
As follows:
.tabs li {
/* Makes a horizontal row */
float: left;
/* So the psueudo elements can be
abs. positioned inside */
position: relative;
/*Make Sure The Li's stays Inline */
display:inline-block;
/* Remove Ugly Chromes `.` */
list-styling:none;
}
.tabs .active a {
/* Colors when tab is active */
background: #aea; /* Added Green Color */
color: black;
}
.tabs li:last-child:after, .tabs li:last-child a:after,
.tabs li:first-child:before, .tabs li:first-child a:before,
.tabs .active:after, .tabs .active:before,
.tabs .active a:after, .tabs .active a:before {
content: "";
background: #afa;
}
.tabs .active:before, .tabs .active:after {
background: white;
background:#afa;
/* Squares below circles */
z-index: 1;
}
.tabs .active a:after, .tabs .active a:before {
background: #ddc385;
}
and here is another fiddle after adding some JQuery to make it live.
Hope it helps :).