content logo

Bootstrap Tabs:

Bootstrap Purple Rectangular Tabs

If you use a beautiful tab for your website, you can be successful in attracting new visitors to that and be famous on the internet. In this post, we have provided a functional code that has a beautiful design. Bootstrap Purple Rectangular Tabs helps you to make an awesome website that anyone will love. You can use these Bootstrap Beautiful Tabs and classify all the information of your website and help visitors to read the content easily with no rush. As you see, this tab is simple, but there is a shadow in a specific part of that. Just there are two lines around the detailed sentences in purple color. Moreover, the color of the selected part is purple too.

The background of these Bootstrap Rectangular Tabs is white, and if you move the mouse or click on a specific part, it will turn purple with an animating design. These Tabs with Animation are shown softly and as you see, the color of the writing in the unselected part is black and as soon as you select that, this will change to white. You can download and use these Bootstrap Purple Tabs and make sure to attract new visitors.

 

#

Bootstrap Rectangular Tabs

#

Bootstrap Beautiful Tabs

#

Tabs with Animation

#

Bootstrap Purple 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">
                        <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 {
    text-decoration: none;
    outline: none;
}
.tab {
    font-family: "Sora", sans-serif;
}
.tab .nav-tabs {
    background-color: transparent;
    border: none;
}
.tab .nav-tabs li a {
    color: #333;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    padding: 11px 15px 10px;
    margin: 0 10px 1px 0;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li:last-child a {
    margin-right: 0;
}
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a {
    color: #fff;
    background: #f5f5f5;
    border: none;
}
.tab .nav-tabs li a:before {
    content: "";
    background: #6f2aab;
    height: 100%;
    width: 100%;
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -1;
    transition: opacity 0.4s ease 0s, left 0.3s ease 0s, transform 0.4s ease 0.2s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    opacity: 1;
    transform: scale(1);
    left: 0;
}
.tab .tab-content {
    color: #333;
    background: linear-gradient(to right bottom, #f5f5f5 50%, transparent 50%);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-top: 4px solid #6f2aab;
    border-left: 4px solid #6f2aab;
    position: relative;
}
.tab .tab-content h3 {
    color: #6f2aab;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 7px 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
    }
    .tab .nav-tabs li a {
        margin: 0 0 10px;
    }
    .tab .tab-content h3 {
        font-size: 18px;
    }
}
<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: "Sora", sans-serif;
}
.tab .nav-tabs {
    background-color: transparent;
    border: none;
}
.tab .nav-tabs li a {
    color: #333;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    padding: 11px 15px 10px;
    margin: 0 10px 1px 0;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease 0s;
}
.tab .nav-tabs li:last-child a {
    margin-right: 0;
}
.tab .nav-tabs li a:hover,
.tab .nav-tabs li.active a {
    color: #fff;
    background: #f5f5f5;
    border: none;
}
.tab .nav-tabs li a:before {
    content: "";
    background: #6f2aab;
    height: 100%;
    width: 100%;
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -1;
    transition: opacity 0.4s ease 0s, left 0.3s ease 0s, transform 0.4s ease 0.2s;
}
.tab .nav-tabs li.active a:before,
.tab .nav-tabs li a:hover:before {
    opacity: 1;
    transform: scale(1);
    left: 0;
}
.tab .tab-content {
    color: #333;
    background: linear-gradient(to right bottom, #f5f5f5 50%, transparent 50%);
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 25px;
    padding: 20px;
    border-top: 4px solid #6f2aab;
    border-left: 4px solid #6f2aab;
    position: relative;
}
.tab .tab-content h3 {
    color: #6f2aab;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 7px 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
    }
    .tab .nav-tabs li a {
        margin: 0 0 10px;
    }
    .tab .tab-content h3 {
        font-size: 18px;
    }
}
</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