Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would suggest removing your CENTER and making your #wrap_design be like this:</p> <pre><code> #wrap_design { margin: 0 auto; width: 1139px; } </code></pre> <p>This will center your wrapper - I'd strongly advise against CENTER. If you want to change the margin top of this wrapper (ie 20px from top and bottom) do this margin: 20px auto;.</p> <p>You don't need to use clear: both; necessarily. In a wrapper of a float (or multiple floats) you can just put overflow: hidden (same effect) and no additional markup is needed:</p> <pre><code> &lt;style type="text/css"&gt; .container { background: #CCC; border: 1px solid #ddd; overflow: hidden; width: 400px; } .left { float: left; } .right { float: right; } &lt;/style&gt; &lt;div class="container"&gt; &lt;div class="left"&gt; this will float left &lt;/div&gt; &lt;div class="right"&gt; this will float left &lt;/div&gt; &lt;/div&gt; </code></pre> <p>If you didn't have the "overflow: hidden" in this example you wouldn't see the "#CCC" background color in the .container. </p> <p>This is the same as doing clear way (but again above is better because less markup):</p> <pre><code>&lt;style type="text/css"&gt; .container { background: #CCC; border: 1px solid #ddd; width: 400px; } .left { float: left; } .right { float: right; } .clear { clear: both; } &lt;/style&gt; &lt;div class="container"&gt; &lt;div class="left"&gt; this will float left &lt;/div&gt; &lt;div class="right"&gt; this will float left &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Clear method is good in a case like this (when you want a child "outside of the parent"):</p> <pre><code> &lt;style type="text/css"&gt; .container { background: #CCC; border: 1px solid #ddd; margin: 50px auto; width: 400px; } .left { float: left; } .right { background-color: #333; color: #FFF; float: right; margin: -10px -40px 0 0; } .clear { clear: both; } &lt;/style&gt; &lt;div class="container"&gt; &lt;div class="left"&gt; this will float left &lt;/div&gt; &lt;div class="right"&gt; this will float left &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>But again, I wouldn't recommend that markup, if your design could be different you can use clear like this too:</p> <pre><code> &lt;style type="text/css"&gt; .container { background: #CCC; border: 1px solid #ddd; margin: 50px auto; width: 400px; } .left { float: left; width: 200px; } .right { background-color: #333; color: #FFF; float: right; margin: -10px -40px 0 0; width: 240px; } .full { background: #f5f5f5; clear: both; margin: 20px auto; text-align: center; width: 90%; } &lt;/style&gt; &lt;div class="container"&gt; &lt;div class="left"&gt; this will float left &lt;/div&gt; &lt;div class="right"&gt; this will float left &lt;/div&gt; &lt;div class="full"&gt; this is full sized &lt;/div&gt; &lt;/div&gt; </code></pre> <p>If you follow these example, you should solve your problem :)</p>
    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. 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