Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I horizontally align these divs in these boxes?
    primarykey
    data
    text
    <p>This should be simple, but I can't figure it out. Below is my code sample. I want the top two divs in each box to align to the top, and the bottom two divs in each box to align to the bottom. Basically so the tops and bottoms align in each row. Sometimes I have extra long content in the second div. Here is my jsfiddle <a href="http://jsfiddle.net/APJX8/2/" rel="nofollow">http://jsfiddle.net/APJX8/2/</a></p> <pre><code>&lt;table style="width:100%;"&gt; &lt;tr&gt; &lt;td style="width: 25%;"&gt; &lt;div class="box" style="height:200px;"&gt; &lt;div&gt;top&lt;/div&gt; &lt;div&gt;this is an extra extra extra long line that wraps&lt;/div&gt; &lt;div&gt;right above bottom&lt;/div&gt; &lt;div&gt;bottom&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="width: 25%;"&gt; &lt;div class="box" style="height:200px;"&gt; &lt;div&gt;top&lt;/div&gt; &lt;div&gt;right underneath&lt;/div&gt; &lt;div&gt;right above bottom&lt;/div&gt; &lt;div&gt;bottom&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="width: 25%;"&gt; &lt;div class="box" style="height:200px;"&gt; &lt;div&gt;top&lt;/div&gt; &lt;div&gt;right underneath&lt;/div&gt; &lt;div&gt;right above bottom&lt;/div&gt; &lt;div&gt;bottom&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="width: 25%;"&gt; &lt;div class="box" style="height:200px;"&gt; &lt;div&gt;top&lt;/div&gt; &lt;div&gt;right underneath&lt;/div&gt; &lt;div&gt;right above bottom&lt;/div&gt; &lt;div&gt;bottom&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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