Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to get divs sorted properly
    primarykey
    data
    text
    <p>I have been running into some issues with a JS script and have isolated the problems. My divs are completely messed up. The layout I am looking for is :</p> <pre> wrapper - whole page. header left menu 1 right content (stretches to / past left menu item 3) left menu 2 left menu 3 footer </pre> <p>I would like the menu items to be contained in a div which is the same height as the right content div.</p> <p>This is the code I have :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Bliss&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="styling1.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wholewrap"&gt; &lt;div id="header"&gt;header&lt;/div&gt; &lt;div id="middlewrap"&gt; &lt;div id="menuwrap"&gt; &lt;div id="1" class="floatleftnw"&gt;1&lt;/div&gt; &lt;div id="1" class="floatleftnw"&gt;2&lt;/div&gt; &lt;div id="1" class="floatleftnw"&gt;3&lt;/div&gt; &lt;/div&gt;&lt;!-- end of menu--&gt; &lt;div id="right" style="float:right; display:inline;"&gt;right&lt;/div&gt; &lt;/div&gt;&lt;!-- end of middlewrap--&gt; &lt;div id="footer"&gt; footer &lt;/div &gt; &lt;/div&gt;&lt;!-- end of whole wrap--&gt; &lt;/body&gt;&lt;/html&gt; </code></pre> <p>and the css I have (as per styling1.css) is :</p> <pre><code>@charset "utf-8"; /* CSS Document */ html, body { margin: 0px; padding: 0px; } body { font-family: Verdana, Arial, sans-serif; font-size: 11px; text-align: center; line-height: 1.8em; background:#fff; } #wholewrap { width:1000px; margin-left:auto; margin-right:auto; } #right { margin-left:220px; width:740px; margin-bottom:40px; float:right; display:inline; } .floatleftnw { float:left; } #middlewrap { height:800px; width:1000px; } #menuwrap { height:800px; width:200px; display:inline; border:1px solid blue; } .clearer { font-size: 0px; height: 0px; width: 100%; display: block; clear: both; } </code></pre> <p>Can anyone see where I am going wrong? When I rewrote this layout (last hour or 2) I opened my div and made sure I closed it straight away and even commented it. The code is not showing any errors in DreamWeaver, however when I view in firebug, the divs are not functioning as supposed, I.e the menuwrap should have a blue border around it. Right should be inline with the left menus (I can get the border around the menuwrap, however as soon as I add inline to right's properties, it all gets destroyed.)</p> <p>Thank you</p>
    singulars
    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.
 

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