I'm currently working on my very first website and trying to implement a vertical timeline using Bootstrap 4. My goal is to have the timeline bar situated between two columns. However, I'm encountering an issue where I can't align text in the first column and an image in the second column without the image being pushed to the next row. Upon inspecting the element, I've noticed a large margin (orange area) that I can't seem to remove. Any suggestions on how to fix this issue would be greatly appreciated! This post marks my debut on Stack Overflow, so I hope I'm not being too long-winded! Thank you!
<div class="row mt-3 no-gutters">
<div class="col-md-12">
<div class="timeline">
<div class="timeline-item-left">
<div class="col-md-6 text-right p-3 mr-0">
<h3>December 2017</h3>
<h5>Big Basin Redwoods State Park </h5>
Berry Creek Falls Loop | 10 Miles
</div>
<div class="offset-md-6 col-md-6 text-left">
<a href="adventure_images/big_basin.jpg">
<img src="adventure_images/big_basin.jpg" class="img-thumbnail" alt="Big Basin" width="150">
</a>
</div>
</div>
CSS
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
/* Containers around content */
.timeline-item-left {
padding: 10px 30px;
position: relative;
background-color: white;
width: 100%;
}
.timeline-item-right {
padding: 10px 30px;
position: relative;
background-color: white;
width: 100%;
}
See Screenshot of Element Inspection
Check Out Website for Detailed Inspection