content logo

Bootstrap Tabs:

Tabs with Zigzag Border in Bootstrap

If you have a website and you are looking for an attractive bootstrap, pay attention to this post carefully. In this post, we have provided a code that contains a functional tab for you. Tabs with Zigzag Border in Bootstrap are the best idea for using in any website to attract visitors. You can see the incredible design of this bootstrap that has a crimson border and the background of these sections is white. The writing of these Bootstrap Crimson Tabs is red and makes beautiful harmony with its white background. As you can see from the detailed part, it has a lighter color and it is orange. Plus, this part has a zigzag design that makes your website more beautiful.

Moreover, you can see that the writing of these Simple Zigzag Tabs has a white color. This zigzag border is above and bottom of the detailed part. Until you don’t click on these Bootstrap Zigzag Tabs, they are white with crimson writing; but after you select a section, an attractive animating hover effect will appear. In the meanwhile, the color of the writing will also change to white. These Tabs with Hover Effect are like a rectangle and you can use these Tabs with Zigzag Border with no trouble.

#

Bootstrap Crimson Tabs

#

Tabs with Hover Effect

#

Simple Zigzag Tabs

#

Tabs with Zigzag Border

#

Bootstrap Zigzag 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 {
    outline: none;
    text-decoration: none;
}
.tab .nav-tabs {
    border: none;
    margin-bottom: 30px;
}
.tab .nav-tabs li a {
    padding: 12px 20px;
    margin-right: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #4f000b;
    text-transform: uppercase;
    border-radius: 0;
    z-index: 1;
    position: relative;
}
.tab .nav-tabs li a:hover {
    color: #fff;
}
.tab .nav-tabs li.active a {
    border: none;
    color: #fff;
}
.tab .nav-tabs li a:before {
    content: "";
    width: 100%;
    height: 100%;
    border: 3px solid #4f000b;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li.active a:before {
    opacity: 0;
    transform: scale(0.5);
}
.tab .nav-tabs li a:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #4f000b;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transform: scale(1.2);
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:hover:after,
.tab .nav-tabs li.active a:after {
    opacity: 1;
    transform: scale(1);
}
.tab .tab-content {
    padding: 20px 35px;
    margin: 0;
    background: #da7635;
    font-size: 15px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 25px;
    z-index: 1;
    position: relative;
}
.tab .tab-content:before,
.tab .tab-content:after {
    content: "";
    display: block;
    width: 100%;
    height: 21px;
    background: linear-gradient(-45deg, transparent 75%, #da7635 75%) 0 50%, linear-gradient(45deg, transparent 75%, #da7635 75%) 0 50%;
    background-repeat: repeat-x;
    background-size: 16px;
    position: absolute;
    bottom: -21px;
    left: 0;
}
.tab .tab-content:after {
    bottom: auto;
    top: -21px;
    transform: rotate(-180deg);
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        overflow: hidden;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .tab .nav-tabs li a {
        margin-right: 0;
    }
}
<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: 30px;
}
.tab .nav-tabs li a {
    padding: 12px 20px;
    margin-right: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #4f000b;
    text-transform: uppercase;
    border-radius: 0;
    z-index: 1;
    position: relative;
}
.tab .nav-tabs li a:hover {
    color: #fff;
}
.tab .nav-tabs li.active a {
    border: none;
    color: #fff;
}
.tab .nav-tabs li a:before {
    content: "";
    width: 100%;
    height: 100%;
    border: 3px solid #4f000b;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li.active a:before {
    opacity: 0;
    transform: scale(0.5);
}
.tab .nav-tabs li a:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #4f000b;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transform: scale(1.2);
    transition: all 0.5s ease 0s;
}
.tab .nav-tabs li a:hover:after,
.tab .nav-tabs li.active a:after {
    opacity: 1;
    transform: scale(1);
}
.tab .tab-content {
    padding: 20px 35px;
    margin: 0;
    background: #da7635;
    font-size: 15px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 25px;
    z-index: 1;
    position: relative;
}
.tab .tab-content:before,
.tab .tab-content:after {
    content: "";
    display: block;
    width: 100%;
    height: 21px;
    background: linear-gradient(-45deg, transparent 75%, #da7635 75%) 0 50%, linear-gradient(45deg, transparent 75%, #da7635 75%) 0 50%;
    background-repeat: repeat-x;
    background-size: 16px;
    position: absolute;
    bottom: -21px;
    left: 0;
}
.tab .tab-content:after {
    bottom: auto;
    top: -21px;
    transform: rotate(-180deg);
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs {
        overflow: hidden;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .tab .nav-tabs li a {
        margin-right: 0;
    }
}
</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