content logo

Bootstrap Tabs:

Red Gradient Bootstrap Tabs

Color is one of the most important factors in attracting new visitors to a website. Moreover, if a beautiful color will integrate with an attractive animation effect, you can say that your website is complete. In this post, you can use a code for Red Gradient Bootstrap Tabs that are so functional. These Bootstrap Beautiful Tabs are creative and unique. As you can see in this post, the color of these tabs is a bright red that attracts people’s attention easily. These Red Bootstrap Tabs have this color until you did not move the mouse or click on them.  But after you move the mouse, click on or select a section, you can see that a beautiful change will happen.

Before clicking on sections, the color of each one is bright red and as soon as you click on a part, the color will turn to white. While the Red Gradient Tabs also have a white border. Plus, the color of the writing has a nice harmony. It means that when the background is red, the writing is white and vice versa. Another point about this code is the Tabs with White Border will appear by a faded animation, from down to up.

#

Bootstrap Beautiful Tabs

#

Red Bootstrap Tabs

#

Red Gradient Tabs

#

Tabs with White 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">
                        <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">
                        <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>
                            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>
                                                                            
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Raleway", sans-serif;
    padding: 15px;
}
.tab .nav-tabs {
    padding: 0 10px;
    margin: 0;
    border: none;
}
.tab .nav-tabs li a {
    color: #fff;
    background: linear-gradient(#ff416c, #ff4b2b);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    padding: 8px 20px 10px;
    margin: 0 10px 16px 0;
    border: none;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.15s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #ff416c;
    background: linear-gradient(#ff416c, #ff4b2b);
    border: none;
    box-shadow: 0 -3px 7px rgba(0, 0, 0, 0.15);
}
.tab .nav-tabs li a:before {
    content: "";
    background: #fff;
    height: 100%;
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    transition: all 0.3s ease-out 0s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    top: 0;
}
.tab .tab-content {
    color: #fff;
    background: linear-gradient(#ff416c, #ff4b2b);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 0 15px #fff, 0 0 30px rgba(0, 0, 0, 0.9);
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        padding: 0;
        margin: 0 0 15px;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }
    .tab .nav-tabs li a {
        margin: 0 0 15px;
        border-radius: 10px;
    }
}
<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>
a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Raleway", sans-serif;
    padding: 15px;
}
.tab .nav-tabs {
    padding: 0 10px;
    margin: 0;
    border: none;
}
.tab .nav-tabs li a {
    color: #fff;
    background: linear-gradient(#ff416c, #ff4b2b);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    padding: 8px 20px 10px;
    margin: 0 10px 16px 0;
    border: none;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0.15s;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a:hover {
    color: #ff416c;
    background: linear-gradient(#ff416c, #ff4b2b);
    border: none;
    box-shadow: 0 -3px 7px rgba(0, 0, 0, 0.15);
}
.tab .nav-tabs li a:before {
    content: "";
    background: #fff;
    height: 100%;
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    transition: all 0.3s ease-out 0s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    top: 0;
}
.tab .tab-content {
    color: #fff;
    background: linear-gradient(#ff416c, #ff4b2b);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 0 15px #fff, 0 0 30px rgba(0, 0, 0, 0.9);
    position: relative;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        padding: 0;
        margin: 0 0 15px;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
    }
    .tab .nav-tabs li a {
        margin: 0 0 15px;
        border-radius: 10px;
    }
}
</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">
                        <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>
                            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