html - Set background image to cover according to viewport size -


with respect mentioned subject, know how add code set background image size cover window without sides getting cut off. have tried using height , width auto,cover , 100% none working.

any appreciated. thank you!

html{ width:100%; height:100%;        background:#fff url(image.jpg) center center no-repeat;       background-attachment: fixed;       background-size:100% auto; } 

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 -