content logo

Bootstrap Tabs:

Gray and Red Bootstrap Tabs with Buttons in Header

Tabs have a crucial role in designing websites, and they can easily classify the website’s information into different sections. They can also increase the beauty of the website. So, look at this post and use the mentioned code on your own website. This post contains the Gray and Red Bootstrap Tabs with Buttons in Header with a beautiful design. It is worth noting that the Bootstrap Tabs Button allows you to save the website’s physical space and organize the content into a regular pattern.

You can look at the following preview and understand the uniqueness of these Free Bootstrap Tabs. The HTML Free Tabs Code has a white simple background with no border, and the detailed part has black writings. There are three sections in this code, and they have a light gray color. Titles are white, and each one is presented with an icon. The first icon is a message box, the second is a cube, and the last is the comment icon. As soon as placing the mouse on a section, the background changes to a darker gray. After clicking, you face a red background on these parts. These Bootstrap Gray and Red Tabs make your website more attractive.

#

Bootstrap Tabs Button

#

Free Bootstrap Tabs

#

Bootstrap Gray and Red Tabs

#

HTML Free Tabs Code

<!-- This script got from frontendfreecode.com -->
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <!-- 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"><i class="fa fa-envelope-o"></i>Section 1</a>
                </li>
                <li role="presentation">
                    <a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-cube"></i>Section 2</a>
                </li>
                <li role="presentation">
                    <a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab"><i class="fa fa-comment"></i>Section 3</a>
                </li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                    <h4>Section 1</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </div>
                <div role="tabpanel" class="tab-pane fade" id="Section2">
                    <h4>Section 2</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </div>
                <div role="tabpanel" class="tab-pane fade" id="Section3">
                    <h4>Section 3</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </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;
}
.nav-tabs {
    border-bottom: none;
    margin-bottom: 25px;
}
.nav-tabs > li {
    border-bottom: none;
    margin-right: 10px;
}
.nav-tabs > li > a {
    background: rgba(171, 171, 171, 0.7);
    padding: 10px 25px;
    border-radius: 4px;
    color: #fff;
    border-bottom: 1px solid #adadad;
    transition: all 0.3s ease 0s;
}
.nav-tabs > li > a:hover {
    background: #ababab;
    border-bottom: 1px solid #ababab;
}
.nav-tabs > li > a > i {
    margin-right: 7px;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: #e74c3c;
    color: #fff;
    border-bottom: 1px solid #e74c3c;
}
.tab-content h4 {
    font-weight: 600;
}
.tab-content p {
    color: #717171;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.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">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.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;
}
.nav-tabs {
    border-bottom: none;
    margin-bottom: 25px;
}
.nav-tabs > li {
    border-bottom: none;
    margin-right: 10px;
}
.nav-tabs > li > a {
    background: rgba(171, 171, 171, 0.7);
    padding: 10px 25px;
    border-radius: 4px;
    color: #fff;
    border-bottom: 1px solid #adadad;
    transition: all 0.3s ease 0s;
}
.nav-tabs > li > a:hover {
    background: #ababab;
    border-bottom: 1px solid #ababab;
}
.nav-tabs > li > a > i {
    margin-right: 7px;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: #e74c3c;
    color: #fff;
    border-bottom: 1px solid #e74c3c;
}
.tab-content h4 {
    font-weight: 600;
}
.tab-content p {
    color: #717171;
}
</style>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <!-- 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"><i class="fa fa-envelope-o"></i>Section 1</a>
                </li>
                <li role="presentation">
                    <a href="#Section2" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-cube"></i>Section 2</a>
                </li>
                <li role="presentation">
                    <a href="#Section3" aria-controls="messages" role="tab" data-toggle="tab"><i class="fa fa-comment"></i>Section 3</a>
                </li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane fade in active" id="Section1">
                    <h4>Section 1</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </div>
                <div role="tabpanel" class="tab-pane fade" id="Section2">
                    <h4>Section 2</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </div>
                <div role="tabpanel" class="tab-pane fade" id="Section3">
                    <h4>Section 3</h4>
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer hendrerit dui vitae leo efficitur, et rutrum nisi fermentum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia.
                    </p>
                </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