Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Okay, I'm at work so I this is the best I could do for now but it works beautifully on IE7.</p> <p>Some words before hand. For this solution, I have used tables. Now there is nothing wrong with using tables - when you use it for tabular data OR in rare circumstances like this. In this case, it must be employed to solve this using basic css. The only other way would be to use technologies (advanced CSS) that might alienate some users - ultimately, it is up to you to decide if you use something that might not work in everyone's browser. I sure wouldn't be able to view your website properly if you used CSS3+ because I'm stuck on IE7 right now.</p> <p>I tested this on IE7 and works like a charm. As you see, it is not very code heavy either.</p> <p>HTML</p> <pre><code>&lt;div id="cols"&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="left""&gt;A Box&lt;/td&gt; &lt;td class="right"&gt; &lt;div&gt;B Box&lt;/div&gt; &lt;div&gt;C Box&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>#cols table td { width: 250px; } #cols table td.left { background: #f1f1f1; } #cols table td.right { padding: 0 0 250px 0; background: #ccc; position: relative; } #cols table td.right div + div { position: absolute; bottom: 0; width: 250px; height: 250px; background: #000; color: #fff; } </code></pre> <p>Results:</p> <p><img src="https://i.stack.imgur.com/UTQ6A.jpg" alt="result of test in both cases"></p> <p>As you see, this code works for the 2 cases: left column is bigger; or, the right column is bigger.</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