I will talk about this screenshot in my explanation:

I have tabs, as you see in the picture. I wanted the active tab (the house in the picture) to have a 1px black line, so I used the bottom border. However, it is difficult to see, but the pink background extends to this entire line. I would like the pink color to stop drawing at the bottom of the tab, excluding the border, if there is one (so only 1px above the bottom).
.main_tabs{ width:100%; display:inline-block; background:#FFDEFD; } li.active a, li.active{ background:#fff; color:#4c4c4c; border-radius: 3px 3px 0px 0px; border-bottom-color:#000000; border-bottom-width:1px; border-bottom-style:solid; transition:all linear 0.4s; }
Above is my CSS for main_tabs (which is responsible for this pink background) and the active tab. In main_tabs, I tried playing with the background size, but didn't change anything. I tried to mess around with the width and display, but that completely messed up my tabs.
source share