content logo

Bootstrap Tabs:

Bootstrap Blue Tabs with Border Effect

If you choose a different tab for your website, you can attract so many visitors and be famous. In this post, we have provided a different bootstrap tab that has a huge impact on attracting new audiences. This code is Bootstrap Blue Tabs with Border Effect that have many functional features. As you can see, the design of these Bootstrap Tabs is totally different and they have a nice blue background. The writing is also light pink. The most remarkable feature of this bootstrap is its border. As you can see, these sections have a border and the detailed part also has a light pink line. Moreover, the Bootstrap Border Effect is small and doesn’t cover all the sections.

These are until you do not select them. But as soon as you select a section, you can see different changes. In this case, the most remarkable change is its color. Because as you click on one part, its color change to red with an animating effect. Moreover, the border of these Simple Tabs with Effect will be long and covers all around the sections. This Animating Tabs Border makes your website more attractive. The code of these Red and Blue Tabs is available and you can download it easily.

#

Bootstrap Tabs

#

Red and Blue Tabs

#

Simple Tabs with Effect

#

Animating Tabs Border

#

Bootstrap Border Effect

<!-- 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">
                        <h3>Section 1</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="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">
                        <h3>Section 3</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>
            </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 {
    outline: none;
    text-decoration: none;
}
.tab .nav-tabs {
    border: none;
    margin-bottom: 20px;
}
.tab .nav-tabs li a {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fcd0a1;
    text-transform: uppercase;
    background: #0f4c5c;
    border: none;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:before,
.tab .nav-tabs li a:after {
    content: "";
    width: 20%;
    height: 3px;
    background: #0f4c5c;
    position: absolute;
    top: -5px;
    left: 0;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:after {
    top: auto;
    left: auto;
    bottom: -5px;
    right: 0;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li a:hover:after,
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li.active a:after {
    width: 100%;
}
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a {
    background: #9a031e;
    color: #fcd0a1;
    border: none;
}
.tab .tab-content {
    padding: 30px;
    background: #0f4c5c;
    outline: 3px solid #fcd0a1;
    outline-offset: -8px;
    font-size: 17px;
    color: #fcd0a1;
    line-height: 30px;
    letter-spacing: 1px;
    position: relative;
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
}
<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 {
    outline: none;
    text-decoration: none;
}
.tab .nav-tabs {
    border: none;
    margin-bottom: 20px;
}
.tab .nav-tabs li a {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fcd0a1;
    text-transform: uppercase;
    background: #0f4c5c;
    border: none;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:before,
.tab .nav-tabs li a:after {
    content: "";
    width: 20%;
    height: 3px;
    background: #0f4c5c;
    position: absolute;
    top: -5px;
    left: 0;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li a:after {
    top: auto;
    left: auto;
    bottom: -5px;
    right: 0;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li a:hover:after,
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li.active a:after {
    width: 100%;
}
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a {
    background: #9a031e;
    color: #fcd0a1;
    border: none;
}
.tab .tab-content {
    padding: 30px;
    background: #0f4c5c;
    outline: 3px solid #fcd0a1;
    outline-offset: -8px;
    font-size: 17px;
    color: #fcd0a1;
    line-height: 30px;
    letter-spacing: 1px;
    position: relative;
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
}
</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">
                        <h3>Section 1</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="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">
                        <h3>Section 3</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>
            </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