content logo

Bootstrap Tabs:

Bootstrap Tabs with Border Color Change

If you want to have an organized website and add much information in a small space, look at this code and use it easily. We have provided the Bootstrap Tabs with Border Color Change in this post with a beautiful design. By using these Bootstrap Tabs, you can save the space of your website and even change its appearance and design. As you can see in the below preview of this code, the central theme of this tab is simple, and the sections and the detailed part have a white background. You can see three sections here, and each one has a border all around it. The upside line is thicker than the other parts. The color of these writings is black.

The upside border will change to blue as you click on a specific section. The Bootstrap Tabs Color Change can attract many visitors to your website. This changing color lets you distinguish the selected part. As you can see in these Bootstrap Tabs with Border, the detailed part will represent in a faded way after selecting its section. You can change the title of these sections easily. These Simple Tabs with Border are an excellent idea for all websites.

#

Bootstrap Tabs

#

Simple Tabs with Border

#

Bootstrap Tabs Color Change

#

Bootsrap Tabs with Border

<!-- 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. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <h3>Section 2</h3>
                        <p>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <h3>Section 3</h3>
                        <p>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </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 {
    position: relative;
    border-bottom: none;
}
.tab .nav-tabs li {
    margin-right: 3px;
}
.tab .nav-tabs li a {
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #22272c;
    text-transform: uppercase;
    background: #fff;
    margin-right: 0;
    border-radius: 0;
    border: 1px solid #c9cba3;
    position: relative;
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:before {
    content: "";
    width: 100%;
    height: 5px;
    background: #c9cba3;
    position: absolute;
    top: 0;
    left: 0;
}
.tab .nav-tabs li a:hover {
    border: 1px solid #63d7d9;
}
.tab .nav-tabs li.active a {
    border-color: #14c6c9;
}
.tab .nav-tabs li.active a:before {
    background: #14c6c9;
}
.tab .tab-content {
    font-size: 14px;
    color: #808080;
    line-height: 26px;
    padding: 10px 0;
    margin-top: 10px;
}
.tab .tab-content h3 {
    font-size: 22px;
    color: #5b5a5a;
}
@media only screen and (max-width: 480px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}
<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 {
    position: relative;
    border-bottom: none;
}
.tab .nav-tabs li {
    margin-right: 3px;
}
.tab .nav-tabs li a {
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #22272c;
    text-transform: uppercase;
    background: #fff;
    margin-right: 0;
    border-radius: 0;
    border: 1px solid #c9cba3;
    position: relative;
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:before {
    content: "";
    width: 100%;
    height: 5px;
    background: #c9cba3;
    position: absolute;
    top: 0;
    left: 0;
}
.tab .nav-tabs li a:hover {
    border: 1px solid #63d7d9;
}
.tab .nav-tabs li.active a {
    border-color: #14c6c9;
}
.tab .nav-tabs li.active a:before {
    background: #14c6c9;
}
.tab .tab-content {
    font-size: 14px;
    color: #808080;
    line-height: 26px;
    padding: 10px 0;
    margin-top: 10px;
}
.tab .tab-content h3 {
    font-size: 22px;
    color: #5b5a5a;
}
@media only screen and (max-width: 480px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}
</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. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section2">
                        <h3>Section 2</h3>
                        <p>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </p>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="Section3">
                        <h3>Section 3</h3>
                        <p>
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec urna aliquam, ornare eros vel, malesuada lorem. Nullam faucibus lorem at eros consectetur lobortis. Maecenas nec nibh congue, placerat sem id,
                            rutrum velit. Phasellus porta enim at facilisis condimentum. Maecenas pharetra dolor vel elit tempor pellentesque sed sed eros. Aenean vitae mauris tincidunt, imperdiet orci semper, rhoncus ligula. Vivamus
                            scelerisque.
                        </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