Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to achieve layout with 2 columns of equal height with 1 element in first column, 2 in second, without floats?
    primarykey
    data
    text
    <p>I am trying to make a header for a site that has a logo in the left column, and a rotating image banner and the top-level navigation on the right, without using floats. What am I doing wrong here?</p> <p>This is what I would like it to look like:</p> <p><img src="https://i.stack.imgur.com/Y1i7D.png" alt="enter image description here"></p> <p>Here is my HTML:</p> <pre><code>&lt;!doctype html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link rel="stylesheet" href="css/style.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="header"&gt; &lt;div id="logo"&gt;&lt;p&gt;Logo&lt;/p&gt;&lt;/div&gt; &lt;div id="right"&gt; &lt;div id="rotator"&gt;&lt;p&gt;Rotator&lt;/p&gt;&lt;/div&gt; &lt;div id="navigation"&gt;&lt;p&gt;Navigation&lt;/p&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here is my CSS:</p> <pre><code>#header{ width: 1024px; margin-left: auto; margin-right: auto; background-color: yellow; top: 10px; font-size: 0px; } #logo{ display: inline-block; background-color: red; width: 306px; height: 192px; font-size: 0px; } #right{ display: inline-block; background-color: black; width: 718px; height: 192px; font-size: 0px; } #rotator{ display: block; background-color: green; width: 718px; height: 132px; } #navigation{ display: block; background-color: blue; width: 718px; height: 60px; } p{ font-size: 24px; margin:0; padding: 0; } </code></pre> <p>This is what it ends up looking like: <img src="https://i.stack.imgur.com/EpuOK.png" alt="enter image description here"></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.
    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