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
Post a Comment