Demonstration of displaying rotated sideways oriented tab headers for left
or right
tab positions.
NOTE
All the code in the demo examples here use Bootstrap 5.x tabs markup and Bootstrap 5.x CSS & JS. However, the alternate Bootstrap 4.x & Bootstrap 3.x markup code is also mentioned for each example. Obviously, when using Bootstrap 4.x or 3.x markup, you need to load the Boostrap 4.x or 3.x CSS & JS on your page respectively instead of Bootstrap 5.x assets. Note that the CSS style file bootstrap-tabs-x-bs4.css
must be loaded on page for Bootstrap 5.x and 4.x versions, while bootstrap-tabs-x.css
should be loaded when using with Bootstrap 3.x version.
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)
For sideways rotated tabs, the dropdown popups will need to be aligned correctly. Note the offset
property (data-bs-offset
) in the dropdown markup for aligning the dropdown popover elements. This is not required for Bootstrap 3.x but would be required to be set for Bootstrap 4.x (via data-offset
) and 5.x (via data-bs-offset
).
NOTE To achieve the sideways rotation, you must enclose the tab link text within a span
tag containing the CSS class nav-link-text
.
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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
<!-- Left Sideways --> <div class='tabs-x tabs-left tab-sideways tabs-krajee'> <ul id="myTab-tabs-left" class="nav nav-tabs" role="tablist"> <li class="active"><a href="#home-tabs-left" role="tab" data-toggle="tab" title="Home tab" >Home</a></li> <li><a href="#profile-tabs-left" role="tab-kv" data-toggle="tab" title="Profile details">Profile</a></li> <li class="dropdown"> <a href="#" id="myTabDrop-tabs-left" class="dropdown-toggle" data-toggle="dropdown" title="Menu details" >Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1"> <li><a href="#dropdown-tabs-left-1" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 1</a></li> <li><a href="#dropdown-tabs-left-2" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 2</a></li> </ul> </li> <li class="disabled"><a href="#disabled-tabs-left"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left" class="tab-content"> <div class="tab-pane fade in active" id="home-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left">Disabled Content</div> </div> </div>
<!-- Left Sideways --> <div class='tabs-x tabs-left tab-sideways'> <ul id="myTab-tabs-left" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-left" href="#home-tabs-left" role="tab" data-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-left" href="#profile-tabs-left" role="tab-kv" data-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-left" data-toggle="dropdown" data-offset="35,-82" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-left"> <a class="dropdown-item" id="dropdown-tab-tabs-left-1" href="#dropdown-tabs-left-1" tabindex="-1" title="Menu option 1" role="tab" data-toggle="tab"aria-controls="dropdown-tabs-left-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-left-2" href="#dropdown-tabs-left-2" tabindex="-1" title="Menu option 2" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-left-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-left" href="#disabled-tabs-left"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-left" role="tabpanel" aria-labelledby="home-tab-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left" role="tabpanel" aria-labelledby="profile-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left" role="tabpanel" aria-labelledby="disabled-tab-tabs-left">Disabled Content</div> </div> </div>
<!-- Left Sideways --> <div class='tabs-x tabs-left tab-sideways'> <ul id="myTab-tabs-left" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-left" href="#home-tabs-left" role="tab" data-bs-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-left" href="#profile-tabs-left" role="tab-kv" data-bs-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-left" data-bs-toggle="dropdown" data-bs-offset="35,-120" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-left"> <a class="dropdown-item" id="dropdown-tab-tabs-left-1" href="#dropdown-tabs-left-1" tabindex="-1" title="Menu option 1" role="tab" data-bs-toggle="tab"aria-controls="dropdown-tabs-left-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-left-2" href="#dropdown-tabs-left-2" tabindex="-1" title="Menu option 2" role="tab" data-bs-toggle="tab" aria-controls="dropdown-tabs-left-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-left" href="#disabled-tabs-left"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-left" role="tabpanel" aria-labelledby="home-tab-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left" role="tabpanel" aria-labelledby="profile-tabs-left"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left" role="tabpanel" aria-labelledby="disabled-tab-tabs-left">Disabled Content</div> </div> </div>
For sideways rotated tabs, the dropdown popups will need to be aligned correctly. Note the offset
property (data-bs-offset
) in the dropdown markup for aligning the dropdown popover elements. This is not required for Bootstrap 3.x but would be required to be set for Bootstrap 4.x (via data-offset
) and 5.x (via data-bs-offset
).
NOTE To achieve the sideways rotation, you must enclose the tab link text within a span
tag containing the CSS class nav-link-text
.
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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
<!-- Right Sideways --> <div class='tabs-x tabs-right tab-sideways tabs-krajee'> <ul id="myTab-tabs-right" class="nav nav-tabs" role="tablist"> <li class="active"><a href="#home-tabs-right" role="tab" data-toggle="tab" title="Home tab" >Home</a></li> <li><a href="#profile-tabs-right" role="tab-kv" data-toggle="tab" title="Profile details">Profile</a></li> <li class="dropdown"> <a href="#" id="myTabDrop-tabs-right" class="dropdown-toggle" data-toggle="dropdown" title="Menu details" >Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1"> <li><a href="#dropdown-tabs-right-1" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 1</a></li> <li><a href="#dropdown-tabs-right-2" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 2</a></li> </ul> </li> <li class="disabled"><a href="#disabled-tabs-right"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-right" class="tab-content"> <div class="tab-pane fade in active" id="home-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right">Disabled Content</div> </div> </div>
<!-- Right Sideways --> <div class='tabs-x tabs-right tab-sideways'> <div id="myTabContent-tabs-right" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-right" role="tabpanel" aria-labelledby="home-tab-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right" role="tabpanel" aria-labelledby="profile-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right" role="tabpanel" aria-labelledby="disabled-tab-tabs-right">Disabled Content</div> </div> <ul id="myTab-tabs-right" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-right" href="#home-tabs-right" role="tab" data-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-right" href="#profile-tabs-right" role="tab-kv" data-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-right" data-toggle="dropdown" data-offset="-160,-120" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-right"> <a class="dropdown-item" id="dropdown-tab-tabs-right-1" href="#dropdown-tabs-right-1" tabindex="-1" title="Menu option 1" role="tab" data-toggle="tab"aria-controls="dropdown-tabs-right-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-right-2" href="#dropdown-tabs-right-2" tabindex="-1" title="Menu option 2" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-right-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-right" href="#disabled-tabs-right"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> </div>
<!-- Right Sideways --> <div class='tabs-x tabs-right tab-sideways'> <div id="myTabContent-tabs-right" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-right" role="tabpanel" aria-labelledby="home-tab-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right" role="tabpanel" aria-labelledby="profile-tabs-right"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right" role="tabpanel" aria-labelledby="disabled-tab-tabs-right">Disabled Content</div> </div> <ul id="myTab-tabs-right" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-right" href="#home-tabs-right" role="tab" data-bs-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-right" href="#profile-tabs-right" role="tab-kv" data-bs-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-right" data-bs-toggle="dropdown" data-bs-offset="-35,-82" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-right"> <a class="dropdown-item" id="dropdown-tab-tabs-right-1" href="#dropdown-tabs-right-1" tabindex="-1" title="Menu option 1" role="tab" data-bs-toggle="tab"aria-controls="dropdown-tabs-right-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-right-2" href="#dropdown-tabs-right-2" tabindex="-1" title="Menu option 2" role="tab" data-bs-toggle="tab" aria-controls="dropdown-tabs-right-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-right" href="#disabled-tabs-right"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> </div>
For sideways rotated tabs, the dropdown popups will need to be aligned correctly. Note the offset
property (data-bs-offset
) in the dropdown markup for aligning the dropdown popover elements. This is not required for Bootstrap 3.x but would be required to be set for Bootstrap 4.x (via data-offset
) and 5.x (via data-bs-offset
).
NOTE To achieve the sideways rotation, you must enclose the tab link text within a span
tag containing the CSS class nav-link-text
.
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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
<!-- Left Sideways Bordered --> <div class='tabs-x tabs-left tab-sideways tab-bordered tabs-krajee'> <ul id="myTab-tabs-left-b" class="nav nav-tabs" role="tablist"> <li class="active"><a href="#home-tabs-left-b" role="tab" data-toggle="tab" title="Home tab" >Home</a></li> <li><a href="#profile-tabs-left-b" role="tab-kv" data-toggle="tab" title="Profile details">Profile</a></li> <li class="dropdown"> <a href="#" id="myTabDrop-tabs-left-b" class="dropdown-toggle" data-toggle="dropdown" title="Menu details" >Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1"> <li><a href="#dropdown-tabs-left-b-1" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 1</a></li> <li><a href="#dropdown-tabs-left-b-2" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 2</a></li> </ul> </li> <li class="disabled"><a href="#disabled-tabs-left-b"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left-b" class="tab-content"> <div class="tab-pane fade in active" id="home-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left-b">Disabled Content</div> </div> </div>
<!-- Left Sideways Bordered --> <div class='tabs-x tabs-left tab-sideways tab-bordered'> <ul id="myTab-tabs-left-b" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-left-b" href="#home-tabs-left-b" role="tab" data-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-left-b" href="#profile-tabs-left-b" role="tab-kv" data-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-left-b" data-toggle="dropdown" data-offset="35,-82" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-left-b"> <a class="dropdown-item" id="dropdown-tab-tabs-left-b-1" href="#dropdown-tabs-left-b-1" tabindex="-1" title="Menu option 1" role="tab" data-toggle="tab"aria-controls="dropdown-tabs-left-b-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-left-b-2" href="#dropdown-tabs-left-b-2" tabindex="-1" title="Menu option 2" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-left-b-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-left-b" href="#disabled-tabs-left-b"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left-b" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-left-b" role="tabpanel" aria-labelledby="home-tab-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left-b" role="tabpanel" aria-labelledby="profile-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left-b" role="tabpanel" aria-labelledby="disabled-tab-tabs-left-b">Disabled Content</div> </div> </div>
<!-- Left Sideways Bordered --> <div class='tabs-x tabs-left tab-sideways tab-bordered'> <ul id="myTab-tabs-left-b" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-left-b" href="#home-tabs-left-b" role="tab" data-bs-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-left-b" href="#profile-tabs-left-b" role="tab-kv" data-bs-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-left-b" data-bs-toggle="dropdown" data-bs-offset="35,-120" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-left-b"> <a class="dropdown-item" id="dropdown-tab-tabs-left-b-1" href="#dropdown-tabs-left-b-1" tabindex="-1" title="Menu option 1" role="tab" data-bs-toggle="tab"aria-controls="dropdown-tabs-left-b-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-left-b-2" href="#dropdown-tabs-left-b-2" tabindex="-1" title="Menu option 2" role="tab" data-bs-toggle="tab" aria-controls="dropdown-tabs-left-b-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-left-b" href="#disabled-tabs-left-b"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-left-b" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-left-b" role="tabpanel" aria-labelledby="home-tab-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-left-b" role="tabpanel" aria-labelledby="profile-tabs-left-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-left-b-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-left-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-left-b" role="tabpanel" aria-labelledby="disabled-tab-tabs-left-b">Disabled Content</div> </div> </div>
For sideways rotated tabs, the dropdown popups will need to be aligned correctly. Note the offset
property (data-bs-offset
) in the dropdown markup for aligning the dropdown popover elements. This is not required for Bootstrap 3.x but would be required to be set for Bootstrap 4.x (via data-offset
) and 5.x (via data-bs-offset
).
NOTE To achieve the sideways rotation, you must enclose the tab link text within a span
tag containing the CSS class nav-link-text
.
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.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.
<!-- Right Sideways Bordered --> <div class='tabs-x tabs-right tab-sideways tab-bordered tabs-krajee'> <ul id="myTab-tabs-right-b" class="nav nav-tabs" role="tablist"> <li class="active"><a href="#home-tabs-right-b" role="tab" data-toggle="tab" title="Home tab" >Home</a></li> <li><a href="#profile-tabs-right-b" role="tab-kv" data-toggle="tab" title="Profile details">Profile</a></li> <li class="dropdown"> <a href="#" id="myTabDrop-tabs-right-b" class="dropdown-toggle" data-toggle="dropdown" title="Menu details" >Dropdown <span class="caret"></span></a> <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-1"> <li><a href="#dropdown-tabs-right-b-1" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 1</a></li> <li><a href="#dropdown-tabs-right-b-2" title="Menu option 1" tabindex="-1" role="tab" data-toggle="tab"><i class="fas fa-chevron-circle-right"></i> Option 2</a></li> </ul> </li> <li class="disabled"><a href="#disabled-tabs-right-b"><i class="glyphicon glyphicon-knight"></i> Disabled</a></li> </ul> <div id="myTabContent-tabs-right-b" class="tab-content"> <div class="tab-pane fade in active" id="home-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right-b">Disabled Content</div> </div> </div>
<!-- Right Sideways Bordered --> <div class='tabs-x tabs-right tab-sideways tab-bordered'> <div id="myTabContent-tabs-right-b" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-right-b" role="tabpanel" aria-labelledby="home-tab-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right-b" role="tabpanel" aria-labelledby="profile-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right-b" role="tabpanel" aria-labelledby="disabled-tab-tabs-right-b">Disabled Content</div> </div> <ul id="myTab-tabs-right-b" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-right-b" href="#home-tabs-right-b" role="tab" data-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-right-b" href="#profile-tabs-right-b" role="tab-kv" data-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-right-b" data-toggle="dropdown" data-offset="-160,-120" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-right-b"> <a class="dropdown-item" id="dropdown-tab-tabs-right-b-1" href="#dropdown-tabs-right-b-1" tabindex="-1" title="Menu option 1" role="tab" data-toggle="tab"aria-controls="dropdown-tabs-right-b-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-right-b-2" href="#dropdown-tabs-right-b-2" tabindex="-1" title="Menu option 2" role="tab" data-toggle="tab" aria-controls="dropdown-tabs-right-b-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-right-b" href="#disabled-tabs-right-b"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> </div>
<!-- Right Sideways Bordered --> <div class='tabs-x tabs-right tab-sideways tab-bordered'> <div id="myTabContent-tabs-right-b" class="tab-content"> <div class="tab-pane fade show active" id="home-tabs-right-b" role="tabpanel" aria-labelledby="home-tab-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="profile-tabs-right-b" role="tabpanel" aria-labelledby="profile-tabs-right-b"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-1" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-b-1"><p>...</p></div> <div class="tab-pane fade" id="dropdown-tabs-right-b-2" role="tabpanel" aria-labelledby="dropdown-tab-tabs-right-b-2"><p>...</p></div> <div class="tab-pane fade" id="disabled-tabs-right-b" role="tabpanel" aria-labelledby="disabled-tab-tabs-right-b">Disabled Content</div> </div> <ul id="myTab-tabs-right-b" class="nav nav-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab-tabs-right-b" href="#home-tabs-right-b" role="tab" data-bs-toggle="tab" title="Home tab" aria-controls="home-kv-1" aria-selected="true"> <i class="fas fa-home"></i> Home </a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab-tabs-right-b" href="#profile-tabs-right-b" role="tab-kv" data-bs-toggle="tab" title="Profile details" aria-controls="profile"> <span class="nav-link-text"><i class="fa fa-user"></i> Profile</span> </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="myTabDrop-tabs-right-b" data-bs-toggle="dropdown" data-bs-offset="-35,-82" role="button" title="Menu details" aria-haspopup="true aria-expanded="false"> <span class="nav-link-text"><i class="fa fa-list-alt"></i> Menu</span> </a> <div class="dropdown-menu" role="menu" aria-labelledby="myTabDrop-tabs-right-b"> <a class="dropdown-item" id="dropdown-tab-tabs-right-b-1" href="#dropdown-tabs-right-b-1" tabindex="-1" title="Menu option 1" role="tab" data-bs-toggle="tab"aria-controls="dropdown-tabs-right-b-1"> <i class="fas fa-chevron-circle-right"></i> Option 1</a> <a class="dropdown-item" id="dropdown-tab-tabs-right-b-2" href="#dropdown-tabs-right-b-2" tabindex="-1" title="Menu option 2" role="tab" data-bs-toggle="tab" aria-controls="dropdown-tabs-right-b-2"> <i class="fas fa-chevron-circle-right"></i> Option 2</a> </div> </li> <li class="nav-item"><a class="nav-link disabled" id="disabled-tab-tabs-right-b" href="#disabled-tabs-right-b"><i class="fa fa-chess-knight"></i> Disabled</a></li> </ul> </div>
Comments & Discussion
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.