Thankful to Krajee!
to get more out of us.

Demonstration of aligning tabs with respect to the tab panes. This applicable for above and below positions. Tabs can be aligned left (default), center, or right.

NOTE All the code in the demo examples here use Bootstrap 4.x tabs markup and Bootstrap 4.x CSS & JS. However, the alternate Bootstrap 3.x markup code is also mentioned for each example. Obviously, when using Bootstrap 3.x markup, you need to load instead the Boostrap 3.x CSS & JS on your page.

Tip

Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Disabled Content

<!-- Tabs Above Centered -->
<div class='tabs-x tabs-above tab-bordered tab-align-center tabs-krajee'>
    <ul id="myTab-tabs-above-c" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-above-c" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-above-c" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-above-c" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1">
                <li><a href="#dropdown-tabs-above-c-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-above-c-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-above-c"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-above-c" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-above-c"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-above-c"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-c-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-c-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-above-c">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Tabs Above Centered -->
<div class='tabs-x tabs-above tab-bordered tab-align-center tabs-krajee'>
    <ul id="myTab-tabs-above-c" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-above-c" href="#home-tabs-above-c" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i
                class="fa fa-home"></i> Home</a></li>
        <li class="nav-item"><a class="nav-link" id="profile-tab-tabs-above-c" href="#profile-tabs-above-c" role="tab-kv" data-toggle="tab" aria-controls="profile"><i class="fa fa-user"></i>
            Profile</a></li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-above-c" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i
                    class="fa fa-list-alt"></i> Menu</a>
            <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-above-c">
                <a class="dropdown-item" id="dropdown-tab-tabs-above-c-1" href="#dropdown-tabs-above-c-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-above-c-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-above-c-2" href="#dropdown-tabs-above-c-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-above-c-2">
                    <i class="fa fa-chevron-right"></i> Option 2</a>
            </div>
        </li>
        <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-above-c" href="#disabled-tabs-above-c"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-above-c" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-above-c" role="tabpanel" aria-labelledby="home-tab-tabs-above-c"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-above-c" role="tabpanel" aria-labelledby="profile-tabs-above-c"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-c-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-above-c-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-c-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-above-c-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-above-c" role="tabpanel" aria-labelledby="disabled-tab-tabs-above-c">Disabled Content</div>
    </div>
</div>

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Disabled Content

<!-- Tabs Below Centered -->
<div class='tabs-x tabs-below tab-bordered tab-align-center tabs-krajee'>
    <div id="myTabContent-tabs-below-c" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-below-c"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-below-c"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-c-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-c-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-below-c">Disabled Content</div>
    </div>
    <ul id="myTab-tabs-below-c" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-below-c" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-below-c" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-below-c" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1">
                <li><a href="#dropdown-tabs-below-c-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-below-c-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-below-c"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
</div>

Bootstrap v4.x Code
<!-- Tabs Below Centered -->
<div class='tabs-x tabs-below tab-bordered tab-align-center tabs-krajee'>
    <div id="myTabContent-tabs-below-c" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-below-c" role="tabpanel" aria-labelledby="home-tab-tabs-below-c"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-below-c" role="tabpanel" aria-labelledby="profile-tabs-below-c"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-c-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-below-c-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-c-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-below-c-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-below-c" role="tabpanel" aria-labelledby="disabled-tab-tabs-below-c">Disabled Content</div>
    </div>
    <ul id="myTab-tabs-below-c" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-below-c" href="#home-tabs-below-c" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i
                class="fa fa-home"></i> Home</a></li>
        <li class="nav-item"><a class="nav-link" id="profile-tab-tabs-below-c" href="#profile-tabs-below-c" role="tab-kv" data-toggle="tab" aria-controls="profile"><i class="fa fa-user"></i>
            Profile</a></li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-below-c" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i
                    class="fa fa-list-alt"></i> Menu</a>
            <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-below-c">
                <a class="dropdown-item" id="dropdown-tab-tabs-below-c-1" href="#dropdown-tabs-below-c-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-below-c-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-below-c-2" href="#dropdown-tabs-below-c-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-below-c-2">
                    <i class="fa fa-chevron-right"></i> Option 2</a>
            </div>
        </li>
        <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-below-c" href="#disabled-tabs-below-c"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
</div>

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Disabled Content

<!-- Tabs Above Right -->
<div class='tabs-x tabs-above tab-bordered tab-align-right tabs-krajee'>
    <ul id="myTab-tabs-above-r" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-above-r" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-above-r" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-above-r" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1">
                <li><a href="#dropdown-tabs-above-r-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-above-r-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-above-r"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-above-r" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-above-r"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-above-r"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-r-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-r-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-above-r">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Tabs Above Right -->
<div class='tabs-x tabs-above tab-bordered tab-align-right tabs-krajee'>
    <ul id="myTab-tabs-above-r" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-above-r" href="#home-tabs-above-r" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i
                class="fa fa-home"></i> Home</a></li>
        <li class="nav-item"><a class="nav-link" id="profile-tab-tabs-above-r" href="#profile-tabs-above-r" role="tab-kv" data-toggle="tab" aria-controls="profile"><i class="fa fa-user"></i>
            Profile</a></li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-above-r" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i
                    class="fa fa-list-alt"></i> Menu</a>
            <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-above-r">
                <a class="dropdown-item" id="dropdown-tab-tabs-above-r-1" href="#dropdown-tabs-above-r-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-above-r-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-above-r-2" href="#dropdown-tabs-above-r-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-above-r-2">
                    <i class="fa fa-chevron-right"></i> Option 2</a>
            </div>
        </li>
        <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-above-r" href="#disabled-tabs-above-r"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-above-r" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-above-r" role="tabpanel" aria-labelledby="home-tab-tabs-above-r"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-above-r" role="tabpanel" aria-labelledby="profile-tabs-above-r"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-r-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-above-r-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-above-r-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-above-r-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-above-r" role="tabpanel" aria-labelledby="disabled-tab-tabs-above-r">Disabled Content</div>
    </div>
</div>

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Disabled Content

<!-- Tabs Below Right -->
<div class='tabs-x tabs-below tab-bordered tab-align-right tabs-krajee'>
    <div id="myTabContent-tabs-below-r" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-below-r"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-below-r"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-r-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-r-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-below-r">Disabled Content</div>
    </div>
    <ul id="myTab-tabs-below-r" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-below-r" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-below-r" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-below-r" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1">
                <li><a href="#dropdown-tabs-below-r-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-below-r-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-below-r"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
</div>

Bootstrap v4.x Code
<!-- Tabs Below Right -->
<div class='tabs-x tabs-below tab-bordered tab-align-right tabs-krajee'>
    <div id="myTabContent-tabs-below-r" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-below-r" role="tabpanel" aria-labelledby="home-tab-tabs-below-r"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-below-r" role="tabpanel" aria-labelledby="profile-tabs-below-r"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-r-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-below-r-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-below-r-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-below-r-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-below-r" role="tabpanel" aria-labelledby="disabled-tab-tabs-below-r">Disabled Content</div>
    </div>
    <ul id="myTab-tabs-below-r" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-below-r" href="#home-tabs-below-r" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true"><i
                class="fa fa-home"></i> Home</a></li>
        <li class="nav-item"><a class="nav-link" id="profile-tab-tabs-below-r" href="#profile-tabs-below-r" role="tab-kv" data-toggle="tab" aria-controls="profile"><i class="fa fa-user"></i>
            Profile</a></li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-below-r" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i
                    class="fa fa-list-alt"></i> Menu</a>
            <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-below-r">
                <a class="dropdown-item" id="dropdown-tab-tabs-below-r-1" href="#dropdown-tabs-below-r-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-below-r-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-below-r-2" href="#dropdown-tabs-below-r-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-below-r-2">
                    <i class="fa fa-chevron-right"></i> Option 2</a>
            </div>
        </li>
        <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-below-r" href="#disabled-tabs-below-r"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
</div>

Note

You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.