<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="tab" role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="tab" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation"><a href="#about" aria-controls="profile" role="tab" data-toggle="tab">About Us</a></li>
<li role="presentation"><a href="#services" aria-controls="messages" role="tab" data-toggle="tab">Services</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content tabs">
<div role="tabpanel" class="tab-pane fade in active" id="home">
<h3>Home</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, lol sparkwebit.com.</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="about">
<h3>About</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, lol sparkwebit.com.</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="services">
<h3>Services</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor. Proin accumsan felis ac felis dapibus, lol sparkwebit.com.</p>
</div>
</div>
</div>
</div>
</div>
</div>
a:hover,a:focus{
text-decoration: none;
outline: none;
}
.tab{ font-family: 'Nunito', sans-serif; }
.tab .nav-tabs{
background-color: transparent;
border: none;
}
.tab .nav-tabs li a{
color: #222;
background: transparent;
font-size: 18px;
font-weight: 800;
letter-spacing: 0px;
text-align: center;
text-transform: uppercase;
padding: 15px 15px 10px;
margin: 0;
border: none;
border-radius: 0;
overflow: hidden;
position: relative;
z-index: 1;
transition: all 0.3s ease 0s;
}
.tab .nav-tabs li:last-child a{ margin-right: 0; }
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a{
color: #222;
background: #fff;
border: none;
}
.tab .nav-tabs li.active a{ color: #6CBF1C; }
.tab .nav-tabs li a:before,
.tab .nav-tabs li a:after{
content: "";
background-color: #d1d1d1;
height: 7px;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:after{
background-color: #6CBF1C;
height: 100%;
opacity: 0;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before{
height: 100%;
opacity: 0;
}
.tab .nav-tabs li.active a:after,
.tab .nav-tabs li a:hover:after{
height: 7px;
opacity: 1;
}
.tab .tab-content{
color: #555;
background: #fff;
font-size: 15px;
letter-spacing: 1px;
line-height: 23px;
padding: 20px;
}
.tab .tab-content h3{
color: #222;
font-size: 22px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
margin: 0 0 7px 0;
}
@media only screen and (max-width: 479px){
.tab .nav-tabs li{ width: 100%; }
.tab .nav-tabs li a{ margin: 0 0 10px; }
.tab .tab-content h3{ font-size: 18px; }
}