My current layout is shown here:
https://i.sstatic.net/vQsqz.jpg
I am looking to incorporate nested columns within these tabs.
My attempted solution so far has been unsuccessful. The issue I am facing is that the columns within the specific tabs are overlapping and have no padding between them.
Could you please help me identify what I am doing wrong?
For reference, here is the link to the jsfiddle
Thank you for your assistance!
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="fruits col-md-8">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-content1" role="tab" aria-controls="nav-content1" aria-selected="true">Content 1</a>
<a class="nav-item nav-link" id="nav-content2-tab" data-toggle="tab" href="#nav-content2" role="tab" aria-controls="nav-content2" aria-selected="false">Content 2</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-content1" role="tabpanel" aria-labelledby="nav-content1-tab">
<div class="row">
<div class="col-md-4">
<p>asdlaklsdlkasdlksadkldsakldsaklsda</p>
</div>
<div class="col-md-4">
<p>asdlaklsdlkasdlksadkldsakldsaklsda</p>
</div>
<div class="col-md-4">
<p>asdlaklsdlkasdlksadkldsakldsaklsda</p>
</div>
</div>
<div class="tab-pane fade" id="nav-content2" role="tabpanel" aria-labelledby="nav-content2-tab">...</div>
</div>
</div>
</div>
<div class="fruits-news col-md-4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
</div>
</div>
<hr>