I'm looking for a way to create triangle side navigation tabs similar to this example. I attempted using :after pseudo-element in my CSS:
.tabs input + label:after{
content:"";
float:left;
position:absolute;
top:0;
right:-12px;
width:0;
height:0;
border-top: 15px solid black;
border-left: 11px solid transparent;
border-bottom: 16px solid black;
}
Unfortunately, it didn't turn out as expected and looked like this instead.
I'm hoping to achieve a triangle side with a border of 1px. Thank you for any assistance, and I would appreciate it if you could provide a JSFiddle. +1