Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS positioning : auto-width, percentages and fixed width resulting in DIV wrap
    primarykey
    data
    text
    <p>I would like to have like a three columns page where the one in the middle has a dynamic width (window resize) AND a minimum one ( div #middle: <code>min-width:400px;</code>).</p> <p>Problem is, the third column is wrapping when I resize.</p> <p>I know if I replace the "#middle div" <code>width:75%;</code> by <code>width:500px;</code> this would work and the right column won't wrap BUT I won't have a dynamic width middle column anymore...</p> <p>How could I solve this? Thanks!</p> <h2>CSS Code :</h2> <pre><code>#contentwraper{ position:relative; min-width:800px; } #left{ position:relative; float:left; background-image: url("http://www.artetics.com/images/artfrontpageslideshow.png"); background-repeat: no-repeat; background-position :center center; min-width: 128px; width: 12%; height: 128px; } #middle{ position:relative; float:left; min-width:400px; width:75%; text-align:center; } #right{ position:relative; float:left; background-image: url("http://www.emoticonswallpapers.com/avatar/art/Test-Card.jpg"); background-repeat: no-repeat; background-position :center center; min-width: 128px; width: 12%; height: 128px; } .imagemiddle{ position:relative; float:left; background-image: url("http://www.tradewindscientific.com/images/t_logo.gif"); background-repeat: no-repeat; background-position :center center; width:25%; height:128px; } </code></pre> <h2>HTML Code :</h2> <pre class="lang-html prettyprint-override"><code>&lt;div id="contentwraper"&gt; &lt;div id="left"&gt;&lt;/div&gt; &lt;div id="middle"&gt; &lt;div class="imagemiddle"&gt;&lt;/div&gt; &lt;div class="imagemiddle"&gt;&lt;/div&gt; &lt;div class="imagemiddle"&gt;&lt;/div&gt; &lt;div class="imagemiddle"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="right"&gt;&lt;/div&gt; &lt;/div&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.
 

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