I am creating a Bootstrap row with three columns - col-sm-2, col-sm-8, and col-sm-2. In the first column, I plan to insert a card, in the second column some text, and in the third column a tooltip. This row will be repeated multiple times.
As a beginner in HTML and CSS, I need help aligning the third column vertically. The image below shows an example of what I aim for, highlighted in orange: https://i.sstatic.net/FAB7G.png. While this seems like a simple task, can anyone assist? Here's the code:
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
<div id="panelImage">
<h4>Lorem ipsum dolor sit amet</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
</div>
</div>
<div class="col-sm-8">
<h2>Lorem ipsum dolor sit amet</h2>
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo
inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni
dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,
consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat
voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea
commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem
eum fugiat quo voluptas nulla pariatur?</p>
</div>
<div class="col-sm-2">
<p id="thing">Lorem ipsum</p>
</div>
</div>
</body>
Below is the corresponding CSS:
#panelImage{
background-color: #dcdcdc;
margin-top: 10px;
margin-right: 10px;
margin-left: 3px;
border-radius: 1px;
border-color: coral;
height: 200px;
padding: 15px;
}
#panelText{
margin-top: 10px;
}
#thing{
top: 50%;
justify-content: center;
}