Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with CSS layout with wrapping text
    text
    copied!<p>I'm trying to replace some layouts table layouts with css layouts and have this code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; #grid{ border:solid; border-width:1px; border-color:#000000; width:300px; max-width:300px; min-width:300px; overflow:hidden; font-size:14px; } #grid .item{ text-align:center; width:33%; margin-top:2px; margin-bottom:2px; float:left; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wagerStream"&gt; &lt;div id="grid"&gt; &lt;div class="item"&gt;item1&lt;/div&gt; &lt;div class="item"&gt;item2&lt;/div&gt; &lt;div class="item"&gt;item3&lt;/div&gt; &lt;div class="item"&gt;item4&lt;/div&gt; &lt;div class="item"&gt;item5&lt;/div&gt; &lt;div class="item"&gt;item6&lt;/div&gt; &lt;div class="item"&gt;item7&lt;/div&gt; &lt;div class="item"&gt;item8&lt;/div&gt; &lt;div class="item"&gt;item9&lt;/div&gt; &lt;/div&gt; &lt;div id="grid"&gt; &lt;div class="item"&gt;item1&lt;/div&gt; &lt;div class="item"&gt;item2&lt;/div&gt; &lt;div class="item"&gt;item3&lt;/div&gt; &lt;div class="item"&gt;item4 with wrapping text&lt;/div&gt; &lt;div class="item"&gt;item5&lt;/div&gt; &lt;div class="item"&gt;item6&lt;/div&gt; &lt;div class="item"&gt;item7&lt;/div&gt; &lt;div class="item"&gt;item8&lt;/div&gt; &lt;div class="item"&gt;item9&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>As you can see I have a problem with the way the last three items display when wrapping text occurs and would to know what would be a good css solution.</p>
 

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