#footer {
clear: both;
display: block;
position: absolute;
bottom: 0;
}
.container-ft {
display: inline-block;
vertical-align: top;
clear: both;
}
.container-ft-left {
width: 40%;
}
.container-ft-right {
width: 40%;
}
#barcode {
margin-top: 48px;
margin-left: 24px;
margin-right: 24px;
background: none;
}
.right {
float: right;
}
.left {
float: left;
}
<div id="footer">
<div class="container-ft">
<div class="container-ft-left left">
<p>this is a random text to see how it formats the image with the other divs</p>
</div>
<div id="barcode" class="left">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/UPC-A-036000291452.svg/220px-UPC-A-036000291452.svg.png" alt="barcode"/>
</div>
<div class="container-ft-right right">
<p>this is a random text to see how it formats the image with the other divs</p>
</div>
</div>
</div>
Current when running the code the third div gets push down to the bottom. How do I change it so that all three are aligned to the top. Similarly to how the first 2 divs are aligned. I have tried adding an align to top for the third div but the issue is still there.
I am not sure how to proceed with this and looking for some help to figure it out