Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS DIVs Break On Zoom
    primarykey
    data
    text
    <p>I have been struggling with this for over 4 hours now and I can't figure this out. Usually when I design a site I always have it centered so I never face the problems were divs break out of the layout.</p> <p><strong>ISSUE 1</strong></p> <p>I have a sidebar on the left, followed by a content block and then a sidebar on the right. Each sidebar should be 180px wide and the content block should fill the empty space between those two sidebars.</p> <p>I can't even get them to float next to eachother now, I could do so before but I am really getting crazy.</p> <p>Even if I do get them to float next to eachother, when I zoom in the page the content block breaks layout and falls down below the left sidebar it is so super annoying I never had this issue before.</p> <p><strong>ISSUE 2</strong></p> <p>The div Block at the header should automatically size between the two logos, similar to what i need for the content_wrapper, how can i do this?</p> <hr> <p>Can someone help me please?</p> <p>Thanks</p> <p>HTML </p> <pre><code>&lt;div id="header"&gt; &lt;div id="left_logo" class="logo"&gt;&lt;/div&gt; &lt;!-- Logo on the Left --&gt; &lt;div id="block"&gt;This is a block&lt;/div&gt; &lt;!-- Div block inbetween the two logos --&gt; &lt;div id="right_logo" class="logo"&gt;&lt;/div&gt; &lt;!-- Logo on the Right --&gt; &lt;/div&gt; &lt;div id="content_wrapper"&gt; &lt;div id="left_sidebar" class="sidebar"&gt;Left Sidebar&lt;/div&gt; &lt;div id="middle_content"&gt;Middle Content&lt;/div&gt; &lt;div id="right_sidebar" class="sidebar"&gt;Right Sidebar&lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS</p> <pre><code>html,body { height:100%; } body { background-image: url('../bg.jpg'); } #header { width: 100%; border: solid 1px; overflow: hidden; } .logo { width: 180px; height: 180px; background-image: url('../avatar.jpg'); border: solid 1px; } #block { border: solid 1px; float: left; } #left_logo { float: left; } #right_logo { float: right; } #content_wrapper { width: 100%; } .sidebar { width: 180px; float: left; } #middle_content { min-height: 500px; width: 100%; float: left; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
    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