CSS white space at bottom of page despite having both min-height and height tag

后端 未结 10 1874
花落未央
花落未央 2020-12-23 20:35

I am unable to get the white space at the bottom of this page to disappear. I have both min-height and height tags in body. Any suggestions? Thanks!

http://womanc

相关标签:
10条回答
  • 2020-12-23 20:52

    Try setting the height of the html element to 100% as well.

    html {
        min-height: 100%;
        overflow-y: scroll;
    }    
    body {
         min-height: 100%;
    }
    

    Reference from this answer..

    0 讨论(0)
  • 2020-12-23 20:55

    It is happening Due to:

    <p><script>var _nwls=[];if(window.jQuery&&window.jQuery.find){_nwls=jQuery.find(".fw_link_newWindow");}else{if(document.getElementsByClassName){_nwls=document.getElementsByClassName("fw_link_newWindow");}else{if(document.querySelectorAll){_nwls=document.querySelectorAll(".fw_link_newWindow");}else{document.write('<scr'+'ipt src="http://static.websimages.com/static/global/js/sizzle/sizzle.min.js"><\/scr'+'ipt>');if(window.Sizzle){_nwls=Sizzle(".fw_link_newWindow");}}}}var numlinks=_nwls.length;for(var i=0;i<numlinks;i++){_nwls[i].target="_blank";}</script></p>
    

    Remove <p></p> around the script.

    0 讨论(0)
  • 2020-12-23 20:56

    I faced this issue because my web page was zoomed out to 90% and as I was viewing my page in responsive mode through the browser developer tools, I did not notice it right away.

    0 讨论(0)
  • 2020-12-23 21:01

    This will remove the margin and padding from your page elements, since there is a paragraph with a script inside that is causing an added margin. this way you should reset it and then you can style the other elements of your page, or you could give that paragraph an id and set margin to zero only for it.

    <style>
    * {
       margin: 0;
       padding: 0;
    }
    </style>
    

    Try to put this as the first style.

    0 讨论(0)
提交回复
热议问题