Having a bit of a challenge with responsive css here.
I'm working on articles where there's text on the left and an image on the right, with the text wrapping around the image. However, at a certain breakpoint I need the body copy to appear above the image.
Here's the code I've been using:
<section class="news-article-body">
<img src="img/news-article-image.jpg" alt="" title=""/>
<p>
Lorem Ipsum...
</p>
</section
Css:
.news-article-body img {
float: right;
}
It looks good. The image floats to the right and the text wraps nicely when necessary. But since the image tag is before the text, I can't get the image to be positioned below the text at the breakpoint.
Essentially, I need the text to wrap properly with this html (Or any other solution):
<section class="news-article-body">
<p>
Lorem Ipsum...
</p>
<img src="img/news-article-image.jpg" alt="" title=""/>
</section
Does anyone know of a technique that could help me achieve this? I've been struggling to find a solution. Thanks