I want the image inside each div to float to the left of the text so the text be on the right of the image for each single div. I was able to do this for one div using CSS but once I add more than one div and select all the divs in CSS, it doesn't work anymore.
.club {
text-align: left;
padding: 0px 35px;
font-weight: bold;
border-radius: 10px;
position: relative;
}
img.club {
position: absolute;
left: 15px;
top: 35px;
}
<div class="club">
<img style="width:300px;height:300px;" src="images/wccs.jpg" />
<h3>blah blah </h3>
<p>blah blah
<p>
</div>
<div class="club">
<img style="width:300px;height:300px;" src="images/wccs.jpg" />
<h3>blah blah </h3>
<p>blah blah
<p>
</div>