html - CSS: giving background image 100% height (including scrolling) -


my html consists of this:

<html>     <body>     </body> </html> 

and has bunch of stuff inside body. css:

html {     width: 100%;     height: 100%; }  body {     background-image:url("../images/backgroundimage.jpg");     background-repeat: no-repeat;     background-size: 100% 100%; } 

the body of html page has lot of stuff (enough force user have scroll down in order reach bottom of page). problem background not extend way down until bottom of page. when first open html page, background image takes when scroll down, part can been seen scrolling has white background, image doesn't reach part requires scrolling in order seen.

how make background image extends till part requires scrolling in order seen?

you can use background-attachment: fixed; make background image scroll page , not having stretch through entire height.

easy fix ;)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -