Display the content alongside the UI Bootstrap tabset tabs

Just starting out with bootstrap and looking to implement the vertical tabset for my project. Here's a basic outline of what I have in mind:

<tabset vertical="true" type="tabs">
<tab heading="Vertical 1">Vertical content 1</tab>
<tab heading="Vertical 2">Vertical content 2</tab>
</tabset>

Struggling a bit with the CSS to make this layout work, any pointers would be appreciated.

Answer №1

feeling cute in this pic 😊

<div class="col-xs-3"> <!-- necessary for floating -->
  <!-- Navigation tabs -->
  <ul class="nav nav-tabs tabs-left"><!-- 'tabs-right' if you prefer right tabs -->
 <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
 <li><a href="#profile" data-toggle="tab">Profile</a></li>
 <li><a href="#messages" data-toggle="tab">Messages</a></li>
 <li><a href="#settings" data-toggle="tab">Settings</a></li>
</ul>
</div>
<div class="col-xs-9">
<!-- Content panes for tabs -->
<div class="tab-content">
  <div class="tab-pane active" id="home">Home Tab.</div>
  <div class="tab-pane" id="profile">Profile Tab.</div>
  <div class="tab-pane" id="messages">Messages Tab.</div>
  <div class="tab-pane" id="settings">Settings Tab.</div>
</div>
</div>

Answer №2

1. Get the CSS file by clicking on this link: 2. Once downloaded, integrate it into your webpage and structure the layout as shown below:

<div class="col-md-12">
<div class="col-md-3"> <!-- necessary for alignment -->
  <!-- Navigation tabs -->
  <ul class="nav nav-tabs tabs-left"><!-- 'tabs-right' to align tabs on the right -->
    <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
    <li><a href="#profile" data-toggle="tab">Profile</a></li>
    <li><a href="#messages" data-toggle="tab">Messages</a></li>
    <li><a href="#settings" data-toggle="tab">Settings</a></li>
  </ul>
</div>
<div class="col-md-9">
    <!-- Content panes within tabs -->
    <div class="tab-content">
      <div class="tab-pane active" id="home">Content of Home Tab.</div>
      <div class="tab-pane" id="profile">Content of Profile Tab.</div>
      <div class="tab-pane" id="messages">Content of Messages Tab.</div>
      <div class="tab-pane" id="settings">Content of Settings Tab.</div>
    </div>
</div>
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

jQuery Summation: A Step-by-Step Guide

Hello everyone, I am a new member of this forum and I am looking forward to learning and contributing with all of you. I have encountered a problem that I tried to solve on my own but couldn't figure it out. Would anyone be able to lend me a hand? H ...

Show drawer when modal is open in React Native

Currently, I am working on a project in react-native and facing an issue where the modal is appearing over the drawer navigator. Despite trying to adjust the zIndex property, it has not been effective. Details of my modal: <Modal visible={isVisible} ...

Most effective method for sending out emails following completion of order processing without causing delays in communication

Is there a way to process orders and send emails after user submits product details without interrupting the client response? The goal is to inform the client that the order was successful immediately, while continuing to send emails in the background. Wo ...

Only one div is revealed by Jquery show and hide, while the other remains hidden

I'm attempting to utilize a single href link to toggle the visibility of two other divs. The first div should be visible by default, while the second div remains hidden. <a href="#ben1" class="fa fa fa-times closer" > <p> clickab ...

The property being set in Angular is undefined, causing an error

I am struggling to understand why the code below is not functioning as intended: Main.html <div class="MainCtrl"> <h1>{{message.test}}</h1> </div> Main.js angular.module('myApp') .controller('MainCtrl', f ...

jQuery: Function is not running as expected

I'm facing a challenge in executing a function twice, and I'm having trouble identifying the issue. Check out my JSFiddle at the following link: http://jsfiddle.net/g6PLu/3/ Javascript function truncate() { $(this).addClass('closed&apo ...

The CSS file fails to connect with the HTML document

As I delve into the world of web design, I've encountered a simple issue that has me stumped. I created a basic example page with both documents residing in the same folder. Oddly enough, the snippet works perfectly when viewed here, but fails to func ...

utilize the "li" element to function as a clickable button

My HTML code contains ul elements, as shown below: <ul class="nav" id="loadCategories"> <li class="sub-menu"><a href="#">Search by category</a> <ul class=""> <li><a href="#">Food</a></li> ...

Displaying updated character counts in Angular directive based on various triggers

I am currently working on creating a characterCounter attribute directive specifically for input fields. My idea is to use 'ngModel' to access the length of the modelValue in ng-model, and to define a max-length within the directive's scope. ...

display or conceal a div when a radio button is selected

I need a way to display a specific div containing unique text once a radio button is selected, while hiding all other div sections. <?php foreach ($items as $item){ $i=1; echo ' <div class="form-check"> <input class="fo ...

Is there a way to automatically refresh the template whenever a scope variable is changed?

My goal is to have the showOrder.html template rendered when the value of orderHistory.type (a scope variable initialized as 'list') changes to 'show'. This change occurs when a link is clicked in the orderHistoryList.html. The model is ...

Step-by-step guide on building a route map using ngRoute in AngularJS

I am in the process of developing a web application similar to gdrive or dropbox. As I navigate through my folders via links, I require the path to be displayed in the URL. I want to update the path from the client side using AngularJS. For example: $st ...

The native javascript modal fails to appear

I'm attempting to implement the functionality from this Codepen demo into my project. I've copied over the HTML, CSS, and JavaScript code: <!DOCTYPE HTML> <html> <head> <script> var dialog = docume ...

Create an attribute with no assigned value

I am currently working on developing one of my initial Angular templates. In the process of looping through an array, I would like to incorporate the required attribute. Each iteration of the array is structured as follows: { label: 'Last Nam ...

Angular Date Filtering to Show dd-mm-yyyy Format

I am having trouble filtering the date correctly in my controller. My desired date format is Thu Mar 31 2016 05:05:00 GMT-0400 (EDT). However, when I use the code mentioned above, the results show up as 03-31-2016. This is the code snippet from my contr ...

Color schemes for items in the Windows store app

I'm having trouble changing the background color of an item in my split application. I've tried using CSS, but nothing seems to work. Here is the template for the item (default style): <div class="itemtemplate" data-win-control="WinJS.Bindin ...

Take away the Link Navigation feature for dates on the calendar

I need to eliminate the link associated with the date shown in a SharePoint calendar list. Despite using developer's tools, I cannot locate an anchor tag to disable using CSS. My goal is to accomplish this task solely through CSS. Here is the code sn ...

What is causing the col-auto with the red border to exceed its available height?

For this code, I've utilized version 5 of Bootstrap. In full screen width, the col-auto with the red border seems to be taking up more space than its content. The yellow border marks the available content space inside. I'm curious about what migh ...

Creating eight equal sections within HTML <div> elements using Bootstrap

I am brand new to Angular. I need to design something like this: https://i.sstatic.net/Zcb9i.png However, I'm struggling to find the right solution. Here is what I have so far: https://i.sstatic.net/7hsrk.png. Having been a backend developer, I&ap ...

The property 'get' cannot be accessed due to its undefined or null reference

I have encountered a seemingly simple issue while working on my project. The error message I am receiving is: Unable to get property 'get' of undefined or null reference This error occurs when I try to make a call to my API from the controller ...