content logo

Bootstrap Tabs:

Bootstrap Tabs with Double Borders

Bootstrap Tabs with Double Borders

If the tabs of a website have a border, it helps that to be more remarkable and visitors can distinguish the main part from others. In this post, you can see the code that contains the Bootstrap Tabs with Double Borders and help you to attract more audiences. By using these tabs, you can organize and classify your information and be more regular. This bootstrap has a red color design and the writings are white. The most important element of this tab is its unique border. The detailed part that shows the information has a double border in white and black. Moreover, the background of these Bootstrap Tabs Border is red and the writing of this part is white. These Bootstrap Double Borders Tabs allow you to make a difference and attractive design for your website.

As we said, the background of this bootstrap is red; this is until you do not click on the sections. As soon as you move the mouse on and select one section, you can see an animating effect and the color will change to white. These Bootstrap Tabs Effect have a red border and the color of writing will be black. You can use this code to set these Animating CSS Tabs for your website.

#

Bootstrap Tabs Border

#

Bootsrap Tabs Effect

#

Animating CSS Tabs

#

Bootstrap Double Borders 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. 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>
            </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: 20px;
}
.tab .nav-tabs li a {
    padding: 10px 20px;
    margin-right: 5px;
    background: #cb5245;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #cb5245;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    position: relative;
    transition: all 0.4s ease-in 0s;
}
.tab .nav-tabs li a:hover {
    color: #cb5245;
    background: #fff;
    border: 2px solid #cb5245;
}
.tab .nav-tabs li.active a {
    color: #092c4f;
    border: 2px solid #092c4f;
}
.tab .nav-tabs li a:before {
    content: "";
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    margin-top: -100px;
    position: absolute;
    top: 50%;
    left: -50%;
    opacity: 0.3;
    z-index: -1;
    transform: scale(0);
    transition: all 0.4s ease-in 0.1s;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li.active a:before {
    opacity: 1;
    transform: scale(2);
}
.tab .tab-content {
    padding: 15px 20px;
    background: #cb5245;
    font-size: 15px;
    color: #fff;
    line-height: 30px;
    letter-spacing: 1px;
    border: 2px solid #092c4f;
    border-radius: 25px;
    outline: 5px solid #092c4f;
    outline-offset: 3px;
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .tab .nav-tabs li a:hover:before,
    .tab .nav-tabs li.active a:before {
        transform: scale(10);
    }
}
<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: 20px;
}
.tab .nav-tabs li a {
    padding: 10px 20px;
    margin-right: 5px;
    background: #cb5245;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border: 2px solid #cb5245;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    position: relative;
    transition: all 0.4s ease-in 0s;
}
.tab .nav-tabs li a:hover {
    color: #cb5245;
    background: #fff;
    border: 2px solid #cb5245;
}
.tab .nav-tabs li.active a {
    color: #092c4f;
    border: 2px solid #092c4f;
}
.tab .nav-tabs li a:before {
    content: "";
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    margin-top: -100px;
    position: absolute;
    top: 50%;
    left: -50%;
    opacity: 0.3;
    z-index: -1;
    transform: scale(0);
    transition: all 0.4s ease-in 0.1s;
}
.tab .nav-tabs li a:hover:before,
.tab .nav-tabs li.active a:before {
    opacity: 1;
    transform: scale(2);
}
.tab .tab-content {
    padding: 15px 20px;
    background: #cb5245;
    font-size: 15px;
    color: #fff;
    line-height: 30px;
    letter-spacing: 1px;
    border: 2px solid #092c4f;
    border-radius: 25px;
    outline: 5px solid #092c4f;
    outline-offset: 3px;
}
.tab .tab-content h3 {
    font-size: 24px;
    margin-top: 0;
}
@media only screen and (max-width: 479px) {
    .tab .nav-tabs li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .tab .nav-tabs li a:hover:before,
    .tab .nav-tabs li.active a:before {
        transform: scale(10);
    }
}
</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. 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>
            </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