Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>May be confusing at first, but follow the comments in the CSS, and you should be fine :) Basically it uses floats, margins, padding, and width to position everything. Then it uses the lovely <em>padding-bottom:10000px;margin-bottom:-10000px;</em> hack to get equal heights. When adjusting the width of the left column, make sure to take into account width, margin, padding, AND border.</p> <p>The CSS:</p> <pre><code>&lt;style type='text/css'&gt; .transaction-history-list { list-style:none; border-bottom:1px solid #ccc; padding:0 0 5px 0; margin:0; } .transaction-history-list li { padding:5px 0 0 0; margin:5px 0 0 0; border-top: 1px solid #ccc; overflow:hidden; padding-left:250px; /* Width of aside (width+padding+margin+border) */ } .transaction-history-list li &gt; aside { position:relative; float:left; width:250px; right:250px; /* Width of aside (width+padding+margin+border) */ margin-left:-100%; } .transaction-history-list li &gt; div { position:relative; float:left; width:100%; padding-bottom:10000px; margin-bottom:-10000px; margin-left:-10px; /* Left padding + left border */ padding-left:10px; } .transaction-history-list time { display:block; color: #999; font-size: .8em; } &lt;/style&gt; </code></pre> <p>And the HTML:</p> <pre><code>&lt;ol class="transaction-history-list"&gt; &lt;li&gt; &lt;div&gt;Created in Starting Activity and assigned to Some User.&lt;/div&gt; &lt;aside&gt; &lt;span&gt;Some User&lt;/span&gt; &lt;time&gt;5/25/2011 10:52 PM&lt;/time&gt; &lt;/aside&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;Created in Starting Activity and assigned to Some User.&lt;/div&gt; &lt;aside&gt; &lt;span&gt;Some User&lt;/span&gt; &lt;time&gt;5/25/2011 10:52 PM&lt;/time&gt; &lt;/aside&gt; &lt;/li&gt; &lt;li&gt; &lt;div&gt;Created in Starting Activity and assigned to Some User.&lt;/div&gt; &lt;aside&gt; &lt;span&gt;Some User&lt;/span&gt; &lt;time&gt;5/25/2011 10:52 PM&lt;/time&gt; &lt;/aside&gt; &lt;/li&gt; &lt;/ol&gt; </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