Currently, my desktop version displays the image first followed by content (h1, p, button), and then repeats in that order. However, I would like to restructure the HTML for the mobile version to make it more user-friendly. How can I achieve this without duplicating code for desktop and mobile? Can this be done using media queries or jQuery?
Here is a link to my code: http://jsfiddle.net/0ucLzbkq/2/
<section class="row-wrap">
<div class="row-inner">
<img class="poster" src="http://dummyimage.com/370x370/000/fff">
<div class="poster-content">
<h1>Heading</h1>
<p>this is a paragraph</p>
<a class="btn-wrap" target="_blank" href="#">
<div class="bt n">button</div>
</a>
</div>
</div>
</section>
<section class="row-wrap">
<div class="row-inner">
<div class="poster-content">
<h1>Heading</h1>
<p>this is a paragraph</p>
<a class="btn-wrap" target="_blank" href="#">
<div class="btn">button</div>
</a>
</div>
<img class="poster" src="http://dummyimage.com/370x370/000/fff">
</div>
</section>