content logo

Bootstrap Tabs:

Bootstrap Tabs with Underline Effect

If you like to use a simple tab for your website and meanwhile attract more visitors, you can look for a specific bootstrap that makes a difference between your website and others. In this post, we have prepared the Bootstrap Tabs with Underline Effect that has a huge impact on attracting new audiences. As you can see these Bootstrap Simple Tabs, are so simple and have a white background. The writing of this great bootstrap is black. You can use these White Bootstrap Tabs to organize and classify all information on your website. Plus, the title of these sections is optional and you can choose or change this title.

As we said, all background of this bootstrap is simple white before clicking on a part. But if you select a specific section or even move the mouse on that, you can see an animation effect with a beautiful blue line under the selected part. These Tabs with Underline Effect look so unique and simple at the same time. Moreover, the effect of these tabs is like a triangle in a faded way. Plus, these Beautiful Stylish CSS Tabs are provided a blue line under the detail of each part.

 

#

Bootstrap Simple Tabs

#

Tabs with Underline Effect

#

White Bootstrap Tabs

#

Beautiful Stylish CSS Tabs

<!-- This script got from frontendfreecode.com -->
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <div class="tab" role="tabpanel">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#Section1" aria-controls="home" role="tab" data-toggle="tab">Section 1</a></li>
                    <li role="presentation"><a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab">Section 2</a></li>
                    <li role="presentation"><a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab">Section 3</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content tabs">
                    <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                        <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, non iaculis
                            mi varius.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <h3>Section 2</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, non iaculis
                            mi varius.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <p>
                            Proin accumsan felis ac felis dapibus, non iaculis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor.
                            mi varius.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
    margin: 20px;
}
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Barlow", sans-serif;
}
.tab .nav-tabs {
    border: none;
}
.tab .nav-tabs li a {
    color: #555;
    background: #fff;
    font-size: 19px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 12px 20px 14px;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.3s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #1d627c;
    background: #fff;
    border: none;
}
.tab .nav-tabs li a:before,
.tab .nav-tabs li a:after {
    content: "";
    background-color: rgba(29, 98, 124, 0.09);
    width: 100%;
    height: 80%;
    position: absolute;
    top: -80%;
    left: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:after {
    background-color: #1d627c;
    top: auto;
    bottom: -4px;
    height: 4px;
    clip-path: none;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    top: 0;
}
.tab .nav-tabs li.active a:after,
.tab .nav-tabs li a:hover:after {
    bottom: 0;
}
.tab .tab-content {
    color: #555;
    background: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-bottom: 4px solid #1d627c;
    box-shadow: 5px 5px 10px #cdcdcc;
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        margin: 0 0 10px;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
body {
    margin: 20px;
}
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Barlow", sans-serif;
}
.tab .nav-tabs {
    border: none;
}
.tab .nav-tabs li a {
    color: #555;
    background: #fff;
    font-size: 19px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 12px 20px 14px;
    margin: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.3s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #1d627c;
    background: #fff;
    border: none;
}
.tab .nav-tabs li a:before,
.tab .nav-tabs li a:after {
    content: "";
    background-color: rgba(29, 98, 124, 0.09);
    width: 100%;
    height: 80%;
    position: absolute;
    top: -80%;
    left: 0;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:after {
    background-color: #1d627c;
    top: auto;
    bottom: -4px;
    height: 4px;
    clip-path: none;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    top: 0;
}
.tab .nav-tabs li.active a:after,
.tab .nav-tabs li a:hover:after {
    bottom: 0;
}
.tab .tab-content {
    color: #555;
    background: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-bottom: 4px solid #1d627c;
    box-shadow: 5px 5px 10px #cdcdcc;
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        margin: 0 0 10px;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }
}
</style>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <div class="tab" role="tabpanel">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" class="active"><a href="#Section1" aria-controls="home" role="tab" data-toggle="tab">Section 1</a></li>
                    <li role="presentation"><a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab">Section 2</a></li>
                    <li role="presentation"><a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab">Section 3</a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content tabs">
                    <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                        <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, non iaculis
                            mi varius.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <h3>Section 2</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, non iaculis
                            mi varius.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <p>
                            Proin accumsan felis ac felis dapibus, non iaculis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper, magna a ultricies volutpat, mi eros viverra massa, vitae consequat nisi justo in tortor.
                            mi varius.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview