Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Using <code>float</code>, <code>clear:both</code> and the correct HTML structure; </p> <p>You would add a wrapper to each image and text to keep them separated from the other images and text, and add a <code>float:left;</code> to the image and text inside the wrapper, and clearing the floats right after.</p> <p>(Check out the <a href="http://jsfiddle.net/nq3q2/" rel="nofollow">example</a> on <a href="http://jsfiddle.net/nq3q2/" rel="nofollow">JSFiddle</a>)</p> <p>HTML:</p> <pre><code>&lt;div class="debug" style="float: left; margin-left: 50px;"&gt; &lt;p&gt; &amp;nbsp User &amp;nbsp accounts&lt;/p&gt; &lt;div class="row"&gt; &lt;img src = "1.png" style = "height:70px; width: 70px;margin-bottom:40px;"/&gt; &lt;div class="text"&gt;Tweeter&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;img src = "2.png" style = "height:70px; width: 70px;margin-bottom:40px; "/&gt; &lt;div class="text"&gt;Tweeter&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;img src = "3.png" style = "height:70px; width: 70px;margin-bottom:40px;"/&gt; &lt;div class="text"&gt;Tweeter&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="row"&gt; &lt;img src = "4.png" style = "height:70px; width: 70px;margin-bottom:40px;"/&gt; &lt;div class="text"&gt;Tweeter&lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>.debug img{ float:left; margin-right:5px; } .text{ float:left; } .clear{ clear:both; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload