Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Javascript/jQuery</strong></p> <p>If you want left column to be static and the right column to be dynamic, you will need Javascript or a CSS preprocessor like SASS. That's the only real solution that is supported by older browsers.</p> <pre><code>// parent width - leftpage width = remainings $('div.rightPage').width( $('div.rightPage').parent().width() - $('div.leftPage').width() ); </code></pre> <p><strong>Fluid layout</strong></p> <p>If you really want a pure-CSS solution, I suggest to use a fluid layout instead. This is cross-browser as well.</p> <pre><code>div.leftPage { width: 25%; } div.rightPage { width: 75%; } </code></pre> <p><strong>Simulated table</strong></p> <p>As alternative, you can still simulate a table layout using <code>display: table</code>. Tables do have that functionality. <a href="http://jsfiddle.net/QHyjT/" rel="nofollow">Check out the demo</a> (resize the window to see it working)</p> <p>This may not work in IE6 and IE7.</p> <p><strong>Native table</strong></p> <p>In the end, if you are OK with tables, you can use native tables, which are cross-browser ;)</p> <p>CSS</p> <pre><code>table td.fixed { width: 200px; } </code></pre> <p>HTML</p> <pre><code>&lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td class="fixed"&gt; &lt;p&gt;Left content&lt;/p&gt; &lt;/td&gt;&lt;td&gt; &lt;p&gt;Right content&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <hr> <p>Finally, in order to resize it vertically, you need to set <code>resize: vertical</code>.</p> <pre><code>div.leftpage, div.rightpage { resize: vertical; } </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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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