I have included CSS triangles on the active tabs with fluid width on this page, but they are not aligned properly in each tab.
For example, the About Us tab is correctly and centrally aligned, but the others are too far to the right. The issue lies with the left: 23%;
property causing this misalignment. I am unsure how to center-align each one as the tabs vary in width.
Below is the code for the CSS Triangles applied to the active tabs:
#middle .Advert .tabs li.active .up, #middle .Advert .tabs li.active:hover .up {
position: relative;
display: inline-block;
top: 16px;
left: 23%;
width: 0px;
height: 0px;
border-left: 5px solid rgba(0, 0, 0, 0);
border-right: 5px solid rgba(0, 0, 0, 0);
border-bottom: 5px solid #FFF;
margin-left:-10px;
}
And here is the list of Advert tabs:
#middle .Advert .tabs li {
background: #EEE;
padding: 8px 0;
float: left;
cursor: pointer;
width: 19.77%;
text-align: center;
border: 1px solid #C8CBCE;
border-left: 0;
}
Please let me know if you require more CSS code and any assistance would be greatly appreciated.