Hello, I have a column. It has two col-6 grids (bootstrap). In these grids there is a Text and a picture. When I give the value in the left column in the picture float: left; , and text also float: left; , then everything is fine ( https://prnt.sc/fm38f1 ), but what to do in the right column? I need the text and the picture to the right, but also that this picture was just to the left of the text as in https://prnt.sc/fm38f1 . After all, by doing the same, it turns out https://prnt.sc/fm3944 . How to proceed? Here is the code:
HTML
<div class="container"> <div class="col col-md-6" > <img class="totallisthimg" id="totallist-left" src="/assets/img/l1.png"> <p class="totallisth" id="totallist-left"><small class="redtext">9</small><br>COUNTRIES</p> </div> <div class="col col-md-6"> <img class="totallisthimg" src="/assets/img/l2.png"> <p class="totallisth" id="totallist-right"><small class="redtext">9</small><br>TOTAL LISTENERS</p> </div> </div> CSS
#totallist-left { font-weight: normal; float: left; } #totallist-right { font-weight: normal; float: right; } .totallisth { font-weight: 400; font-size: 23px; text-align: left; } .totallisthimg { float: left; height: 100px; width: 100px; margin-right: 1%; } Here are the screenshots: