Is there a way to add space between the border and background color in CSS?
Example
To illustrate, if | represents the border and # represents the background color.
In the given example, it shows as |#####|, but I would like it to be | ##### |
What would be the best approach to achieve this?
This is the code I am using for the example shown:
CSS
.nav-justified > .active > a, .nav-justified > .active > a:hover, .nav-justified > active > a:focus {
background-color: #F0F0F0;
background-image: none;
color: #8f1b1f;
left: 0;
width: 100%;
margin-top: -17px;
padding-bottom: 20px;
padding-top: 20px;
padding-right: 20px;
padding-left: 20px;
}
.nav-justified > li > a {
border-left: 1px solid #d5d5d5;
line-height: 2px;
}
HTML
<ul class="nav nav-justified" id="tableButtons">
<li class='active'><a href="#">Text here</a></li>
</ul>