I am looking to achieve a specific arrangement:
I want two different texts (in block format) to float or display inline next to an image, all within a div element.
Despite trying various display settings (such as block and inline for text), I have not been able to get it to work properly.
HTML:
<div class="res">
<img src="<?php echo 'img/'.$row["sType"].'.png';?>"/>
<span>TITLEe</span>
<span>Description</span>
</div>
CSS:
.res {
height:60px;
background-color:yellow;
border-bottom:1px solid black;
text-align:left;
}
.res img {
margin-top:8.5px;
margin-left:5px;
display:inline
}
.res span {
display:block;
}