Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to make the scrollbar disappear - can't figure out how to use right the CSS
    primarykey
    data
    text
    <p>as you can see <a href="http://glamourina.pl/" rel="nofollow">this site</a> has a horizontal scrollbar. The problem happens only in the pages with the comments field - the <code>&lt;div id="commentsbackground"&gt;</code>.</p> <p>I want to keep the same style, the same view, however I want the scrollbar to disappear.</p> <pre><code>&lt;div id="commentsbackground"&gt; &lt;section class="comment"&gt; &lt;section class="commentsMain"&gt;&lt;/section&gt; &lt;section class="fbcommentbox"&gt;&lt;/section&gt; &lt;/section&gt; &lt;/div&gt; </code></pre> <p>The CSS is the following:</p> <pre><code>#commentsbackground { width: 6000px; margin-left: -1172px; background-color: #EAECF3; overflow: auto; section.comment { height: 500px; margin-left: 1172px; margin-top: 20px; .commentsMain { width: 500px; padding-left: 20px; float: left; border-right: 1px solid rgba(0,0,0,.13); padding-right: 20px; background-color: #E8E8E9; padding-top: 10px; .fbcommentbox { width: 434px; float: left; margin-left: 0px; background-color: #E8E8E9; padding-left: 15px; padding-top: 10px; </code></pre> <p>If I remove <code>margin-left: -1172px;</code> from <code>#commentsbackground</code> and I remove <code>margin-left: 1172px;</code> from <code>section.comment</code> the scrollbar is still there, but the left side becomes white. If I also remove the <code>width: 6000px;</code> then the two comment boxes break, and the white appears in the right side as well.</p> <p>If instead I remove only <code>width: 6000px;</code>, but I keep the margin-left's, then it breaks and I see white on the right.</p> <p>I can't find a reasonable solution because the <code>&lt;div id="commentsbackground"&gt;</code> is inside the <code>&lt;section class="middle_single"&gt;</code> and the latest has a width of 892px... but I need the background of <code>&lt;div id="commentsbackground"&gt;</code> to be grey... for every resolution of the screen... the same as you can see it now. But without scrollbar.</p> <p>I hope somebody can help.</p> <p>[EDIT] - Today I tried to put the whole comment box in the footer.php file. Just before the <code>footer-bottom</code> div. It worked fine, however the site started to have other problems such as: the comments box was showing everywhere, also on the homepage and in the pages and posts with the comments disabled from the wp-admin. So I think that also this was wasn't the right solution for me.</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