My goal is to create a user-friendly interface with a list of tabs, each representing a category. The content related to each tab should be displayed in close proximity to the tab itself, creating a visual hierarchy akin to parent and children.
This is how I've attempted to achieve this:
<div id="teams" class="tabbable tabs-left">
<div class="container">
<div class="row">
<nav class="nav flex-column col-md-1 teamTab" role="tablist" aria-orientation="vertical">
<a class="nav-link active" href="#category1-tab" data-toggle="pill" role="tab">Category1</a>
<a class="nav-link" href="#category2-tab" data-toggle="pill" role="tab">Category2</a>
<a class="nav-link" href="#category3-tab" data-toggle="pill" role="tab">Category3</a>
</nav>
<div class="tab-content col-md-11">
<div class="tab-pane active" id="category1-tab" style="padding-left: 60px; padding-right:100px">
<h5 class="card-title">Name</h5>
<p class="card-title">Position</p>
</div>
<div class="tab-pane" id="category2-tab">
<h5 class="card-title">Category 2 Name</h5>
<p class="card-title">Position</p>
</div>
<div class="tab-pane" id="category3-tab">
<h5 class="card-title">Category 3 Name</h5>
<p class="card-title">Position</p>
</div>
</div>
</div>
</div>
</div>
Presently, all tab contents are displayed in the same location. My intention is for each tab's content to appear next to its respective tab with a slight offset below.
--Category 1
Name
Position
Category 2
Category 2 Name
Position
Category 3
Likewise, clicking here should display its associated content
in this designated area rather than at the top.