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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -