Fixed Height Tabs

Thankful to Krajee!
to get more out of us.

Demonstration of fixing tabs to a specified height. Plugin provides four different height sizes: xs (extra small), sm (small), md (medium) and lg (large) tab height sizes.

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

<!-- Extra Small Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-xs tabs-krajee'>
    <ul id="myTab-tabs-xs" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-xs" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-xs" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-xs" 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-xs-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-xs-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-xs"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-xs" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-xs"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-xs"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-xs-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-xs-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-xs">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Extra Small Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-xs tabs-krajee'>
    <ul id="myTab-tabs-xs" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-xs" href="#home-tabs-xs" 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-xs" href="#profile-tabs-xs" 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-xs" 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-xs">
                <a class="dropdown-item" id="dropdown-tab-tabs-xs-1" href="#dropdown-tabs-xs-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-xs-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-xs-2" href="#dropdown-tabs-xs-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-xs-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-xs" href="#disabled-tabs-xs"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-xs" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-xs" role="tabpanel" aria-labelledby="home-tab-tabs-xs"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-xs" role="tabpanel" aria-labelledby="profile-tabs-xs"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-xs-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-xs-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-xs-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-xs-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-xs" role="tabpanel" aria-labelledby="disabled-tab-tabs-xs">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

<!-- Small Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-sm tabs-krajee'>
    <ul id="myTab-tabs-sm" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-sm" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-sm" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-sm" 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-sm-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-sm-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-sm"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-sm" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-sm"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-sm"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-sm-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-sm-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-sm">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Small Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-sm tabs-krajee'>
    <ul id="myTab-tabs-sm" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-sm" href="#home-tabs-sm" 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-sm" href="#profile-tabs-sm" 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-sm" 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-sm">
                <a class="dropdown-item" id="dropdown-tab-tabs-sm-1" href="#dropdown-tabs-sm-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-sm-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-sm-2" href="#dropdown-tabs-sm-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-sm-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-sm" href="#disabled-tabs-sm"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-sm" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-sm" role="tabpanel" aria-labelledby="home-tab-tabs-sm"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-sm" role="tabpanel" aria-labelledby="profile-tabs-sm"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-sm-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-sm-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-sm-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-sm-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-sm" role="tabpanel" aria-labelledby="disabled-tab-tabs-sm">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

<!-- Medium Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-md tabs-krajee'>
    <ul id="myTab-tabs-md" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-md" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-md" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-md" 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-md-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-md-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-md"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-md" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-md"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-md"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-md-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-md-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-md">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Medium Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-md tabs-krajee'>
    <ul id="myTab-tabs-md" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-md" href="#home-tabs-md" 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-md" href="#profile-tabs-md" 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-md" 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-md">
                <a class="dropdown-item" id="dropdown-tab-tabs-md-1" href="#dropdown-tabs-md-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-md-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-md-2" href="#dropdown-tabs-md-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-md-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-md" href="#disabled-tabs-md"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-md" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-md" role="tabpanel" aria-labelledby="home-tab-tabs-md"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-md" role="tabpanel" aria-labelledby="profile-tabs-md"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-md-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-md-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-md-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-md-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-md" role="tabpanel" aria-labelledby="disabled-tab-tabs-md">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

<!-- Large Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-lg tabs-krajee'>
    <ul id="myTab-tabs-lg" class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#home-tabs-lg" role="tab" data-toggle="tab">Home</a></li>
        <li><a href="#profile-tabs-lg" role="tab-kv" data-toggle="tab">Profile</a></li>
        <li class="dropdown">
            <a href="#" id="myTabDrop-tabs-lg" 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-lg-1" tabindex="-1" role="tab" data-toggle="tab">Option 1</a></li>
                <li><a href="#dropdown-tabs-lg-2" tabindex="-1" role="tab" data-toggle="tab">Option 2</a></li>
            </ul>
        </li>
        <li class="disabled"><a href="#disabled-tabs-lg"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-lg" class="tab-content">
        <div class="tab-pane fade in active" id="home-tabs-lg"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-lg"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-lg-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-lg-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-lg">Disabled Content</div>
    </div>
</div>

Bootstrap v4.x Code
<!-- Large Height -->
<div class='tabs-x tabs-above tab-bordered tab-height-lg tabs-krajee'>
    <ul id="myTab-tabs-lg" class="nav nav-tabs" role="tablist">
        <li class="nav-item"><a class="nav-link active" id="home-tab-tabs-lg" href="#home-tabs-lg" 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-lg" href="#profile-tabs-lg" 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-lg" 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-lg">
                <a class="dropdown-item" id="dropdown-tab-tabs-lg-1" href="#dropdown-tabs-lg-1" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-lg-1">
                    <i class="fa fa-chevron-right"></i> Option 1</a>
                <a class="dropdown-item" id="dropdown-tab-tabs-lg-2" href="#dropdown-tabs-lg-2" tabindex="-1" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-lg-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-lg" href="#disabled-tabs-lg"><i class="fa fa-knight"></i> Disabled</a></li>
    </ul>
    <div id="myTabContent-tabs-lg" class="tab-content">
        <div class="tab-pane fade show active" id="home-tabs-lg" role="tabpanel" aria-labelledby="home-tab-tabs-lg"><p>...</p></div>
        <div class="tab-pane fade" id="profile-tabs-lg" role="tabpanel" aria-labelledby="profile-tabs-lg"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-lg-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-lg-1"><p>...</p></div>
        <div class="tab-pane fade" id="dropdown-tabs-lg-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-lg-2"><p>...</p></div>
        <div class="tab-pane fade" id="disabled-tabs-lg" role="tabpanel" aria-labelledby="disabled-tab-tabs-lg">Disabled Content</div>
    </div>
</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.