Note that there are some explanatory texts on larger screens.

plurals
  1. POimg from header div doesn't go in front of content div
    primarykey
    data
    text
    <p>I can't make my <code>.content-panel</code> and <code>#panel-design</code> float on the right of the <code>.content</code> because of the header design img <code>#searchbar-container</code>. I already tried using <code>z-index</code> with different values. I want to place <code>.content-panel</code> and <code>#panel-design</code> on the right side of the <code>.content</code> while having <code>#searchbar-container</code> above the divs </p> <pre><code>&lt;body&gt; &lt;div class="header"&gt; &lt;img id="searchbar-container" src="images/searchbar1.png"&gt; &lt;/div&gt; &lt;div class="content"&gt; &lt;div class="sidebar"&gt;&lt;/div&gt; &lt;div class="content-panel"&gt; &lt;div id="panel-design"&gt;&lt;/div&gt; &lt;!--main content here--&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>the css:</p> <pre><code> .content { position: relative; max-width: @width; height: 768px;; margin: 0 auto; padding: 0; } .content-panel { position: absolute; float: right; margin: 0; padding: 0; width: 753px; height: 100%; background-color: blue; z-index: -2; } #panel-design{ float: right; width: 685px; height: 375px; background-color: red; z-index: -1; } .sidebar{ width: 285px; height: 100%; margin: 0; padding: 0; } </code></pre> <p>Can't post the whole thing. But this is what I need to achieve, basically the gray image above is the <code>#searchbar-container</code> and the picture of Depp is the <code>#panel-design</code> in front of the <code>.content-panel</code>.</p> <p><img src="https://i.stack.imgur.com/txEDV.png" alt="enter image description here"></p> <p>So far this is what my page looks like:</p> <p><img src="https://i.stack.imgur.com/LKIlW.png" alt="enter image description here"></p> <p>the blue div is the <code>.content-panel</code></p> <p>the red div is the <code>#panel-design</code></p> <p>the gray img above is the <code>#searchbar-container</code></p> <p><code>.content</code> doesn't have a background color but its size is pass the curve of <code>#searchbar-container</code></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