Apologies if the title is not accurate, but I will try my best to explain clearly. If you have any ideas on how to improve it, please share, and I will make changes.
Here is the issue I am facing: https://i.sstatic.net/kGMjw.png
(I apologize for any language issues)
The problem I'm encountering is in a code based on bootstrap. While things appear fine on different devices, the headers have varying word counts. As a result, when resizing the screen, the lines break causing the header's height to increase, making the icon and paragraph shift downwards, which doesn't look very appealing. Is there a way to adjust the margin of the third paragraph and the icon based on the first column's header? Or any other method to enhance its appearance?
Thank you in advance :)
CSS:
h6
{
font-size:0.95em;
color:rgb(52, 73, 94);
padding:0;
}
.pad
{
padding:15px;
}
#icon
{
width:60px;
display:inline-block;
}
p4
{
color:rgb(136, 138, 140);
text-transform:none;
font-size:0.6em;
font-weight:normal;
display:inline-block;
width:72%;
vertical-align:top;
padding-top:5px;
max-width:474px;
}
HTML:
<div class="row">
<div class="col-md-4 marg">
<h6 class="pad"> First Aid Training </h6> <img src="images/doctor-suitecase-64.png" id="icon"> <p4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vestibulum ante ut commodo lacinia. Aliquam id felis faucibus, mollis tortor vitae, mollis ante. </p4> <div class="more"> Read more... </div>
</div>
<div class="col-md-4 marg">
<h6 class="pad"> Documentation Creation </h6> <img src="images/text-file-5-64.png" id="icon"> <p4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vestibulum ante ut commodo lacinia. Aliquam id felis faucibus, mollis tortor vitae, mollis ante. </p4> <div class="more"> Read more... </div>
</div>
<div class="col-md-4 marg">
<h6 class="pad"> Quality Control <br> </h6> <img src="images/workers-64.png" id="icon"> <p4> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vestibulum ante ut commodo lacinia. Aliquam id felis faucibus, mollis tortor vitae, mollis ante. </p4> <div class="more"> Read more... </div>
</div>
</div>