Note that there are some explanatory texts on larger screens.

plurals
  1. POWebsite wider than 100%
    primarykey
    data
    text
    <p>If you take a look at <a href="http://s23.postimg.org/noiku8xaj/Problem1.png" rel="nofollow">this</a> picture you'll see that there is a small gap beside my navigation bar, which is set to 100% width and is supposed to cover the whole screen. It might be hard to see the gap but the scrollbar, which is not intended, is visible. Using <code>overflow-x: hidden;</code> wasn't a viable solution because of the <code>scrollto</code> functions I'm using it scrolls my page to the right automatically. Minimizing the window makes the gap even bigger as shown in <a href="http://s16.postimg.org/pc6c9w5d1/Problem2.png" rel="nofollow">this</a> image. You can also see me selecting the body element which does not cover the gap.</p> <p>Part of my code:</p> <pre><code>body { 40px 0 20px 0 } #navigation { display: block; position:absolute; height: 40px; background: whitesmoke; width: 100%; top: 90px; } #Main { width: 1000px; margin-left: 175px; padding: 0px 0 0 0; } #sidebar { width: 300px; position: relative; float:right; left: -130px; } #sidebar .content { padding: 10px 10px; } .Post { padding-top: 10px; width: 520px; margin: 0px 0px 0px; line-height: 1.4; } </code></pre> <p>Now I tried to move my sidebar closer to the left, and that actually removed the initial gap. The gap that appears when you resize is still there, and if you remove the whole sidebar it makes it smaller. So I guess there is something else that is pushing the page. I searched and found some questions with similar problem where they suggested you to remove the float and left/right properties but they didn't work. </p> <p>So my question is simple: How do I remove the gap(s) but still keep the layout? Or what can be the cause of the problem?</p> <p><strong>EDIT:</strong> I just tried to remove the sidebar AND the posts and it seemed to solve it. The problem is how can I keep them? The gap is probably caused by either #sidebar or .Post, or #Main which is wrapped around them both. I don't think there's anything wrong with the body tag as removing the #main contents solved it.</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.
 

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