Footer at bottom of browser except when I scroll

前端 未结 2 1600
情书的邮戳
情书的邮戳 2021-01-19 06:36

I\'m having a weird footer issue.

http://jsfiddle.net/YGAvd/

The clouds at the bottom of the page will stick to the bottom of the browser window if I expand

2条回答
  •  滥情空心
    2021-01-19 07:09

    Don't put the background image in the footer.... make it the body background image!

    Then make your body tag look like this:

    body {
        line-height: 1;
        overflow: auto;
        background-image: url(http://img.photobucket.com/albums/v410/justice4all_quiet/bottom_clouds.jpg);
        background-repeat: repeat-x;
        background-position:bottom center;
        background-attachment:fixed;
        background-color: #b1ceff;
        font: normal 95% Sathu, Verdana, Arial, Tahoma;
        text-align: center;
        height: 100%;
    }
    

    Don't forget to remove the code from your footer for the image. ALSO, remove the background color in the footer to avoid any issues.

提交回复
热议问题