content logo

Bootstrap Tabs:

Bootstrap Tabs with Slash Separator

Tabs can help the websites' owners organize their pages and change their design functionally. If you also have a website and are looking for a good tab, pay attention to this code. In this post, we have provided the Bootstrap Tabs with Slash Separator that can help you design your website and attract many visitors. Using these Simple Bootstrap Tabs allows you to classify your website's data and artistically show them. As you can see here, the theme of these tabs is gray, and the sections' writing has the same color. These Bootstrap Gray Tabs have an oval and simple border.

As the name appears, all the sections are separated with several slashes and there are lines on two sides of them. As you place the cursor of the mouse or click on a specific section in these Tabs with Separator, the color of the title will change to crimson. This helps visitors to distinguish the selected sections from unselected ones. As you can see in the preview, the detailed part has no border and the writing of the text is black. These Beautiful Gray Tabs are so creative and well-designed so that they can interest people easily.

#

Tabs with Separator

#

Bootstrap Gray Tabs

#

Simple Bootstrap Tabs

#

Beautiful Gray 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>
                    <li role="presentation"><a href="#Section4" aria-controls="messages" role="tab" data-toggle="tab">Section 4</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 role="tabpanel" class="tab-pane fade" id="Section4">
                        <h3>Section 4</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 {
    text-align: center;
    position: relative;
    z-index: 1;
}
.tab:before {
    content: "";
    width: 100%;
    height: 1px;
    background: #cdcdcd;
    position: absolute;
    top: 22px;
    left: 0;
    z-index: -1;
}
.tab .nav-tabs {
    display: inline-block;
    border: 1px solid #cdcdcd;
    background: #f9f9f9;
    border-radius: 50px;
    text-align: center;
    padding: 0 20px;
}
.tab .nav-tabs li {
    float: none;
    display: inline-block;
    position: relative;
}
.tab .nav-tabs li:after {
    content: "";
    width: 1px;
    height: 30px;
    background: #c4c4c4;
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 20px;
    transform: rotate(15deg) translateY(-50%);
}
.tab .nav-tabs li:last-child:after {
    width: 0;
    height: 0;
}
.tab .nav-tabs li a {
    font-size: 16px;
    font-weight: 700;
    color: #999;
    border: none;
}
.tab .nav-tabs li a:hover {
    background: transparent;
    color: #ae1b56;
    border: none;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li.active a:focus,
.tab .nav-tabs li.active a:hover {
    border: none;
    background: none;
    color: #ae1b56;
}
.tab .tab-content {
    font-size: 14px;
    color: #686868;
    line-height: 25px;
    text-align: left;
    padding: 5px 20px;
}
.tab .tab-content h3 {
    font-size: 22px;
    color: #232323;
}
@media only screen and (max-width: 480px) {
    .tab:before {
        width: 0;
        height: 0;
    }
    .tab .nav-tabs {
        padding: 0;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e9e9e9;
    }
    .tab .nav-tabs li:last-child {
        border-bottom: none;
    }
    .tab .nav-tabs li:after {
        width: 0;
        height: 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 {
    text-align: center;
    position: relative;
    z-index: 1;
}
.tab:before {
    content: "";
    width: 100%;
    height: 1px;
    background: #cdcdcd;
    position: absolute;
    top: 22px;
    left: 0;
    z-index: -1;
}
.tab .nav-tabs {
    display: inline-block;
    border: 1px solid #cdcdcd;
    background: #f9f9f9;
    border-radius: 50px;
    text-align: center;
    padding: 0 20px;
}
.tab .nav-tabs li {
    float: none;
    display: inline-block;
    position: relative;
}
.tab .nav-tabs li:after {
    content: "";
    width: 1px;
    height: 30px;
    background: #c4c4c4;
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 20px;
    transform: rotate(15deg) translateY(-50%);
}
.tab .nav-tabs li:last-child:after {
    width: 0;
    height: 0;
}
.tab .nav-tabs li a {
    font-size: 16px;
    font-weight: 700;
    color: #999;
    border: none;
}
.tab .nav-tabs li a:hover {
    background: transparent;
    color: #ae1b56;
    border: none;
}
.tab .nav-tabs li.active a,
.tab .nav-tabs li.active a:focus,
.tab .nav-tabs li.active a:hover {
    border: none;
    background: none;
    color: #ae1b56;
}
.tab .tab-content {
    font-size: 14px;
    color: #686868;
    line-height: 25px;
    text-align: left;
    padding: 5px 20px;
}
.tab .tab-content h3 {
    font-size: 22px;
    color: #232323;
}
@media only screen and (max-width: 480px) {
    .tab:before {
        width: 0;
        height: 0;
    }
    .tab .nav-tabs {
        padding: 0;
    }
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e9e9e9;
    }
    .tab .nav-tabs li:last-child {
        border-bottom: none;
    }
    .tab .nav-tabs li:after {
        width: 0;
        height: 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>
                    <li role="presentation"><a href="#Section4" aria-controls="messages" role="tab" data-toggle="tab">Section 4</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 role="tabpanel" class="tab-pane fade" id="Section4">
                        <h3>Section 4</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