+ 1

How do I set the properties of background image to be responsive?

I inserted the image by using the url () on the body tag on the css , but when I see it on a phone it is cutoff. so how do I make it resize on a phone?

26th Mar 2018, 2:33 PM
Leoulg
Leoulg - avatar
2 ответов
+ 6
Set "background-size" css property to "contain" or "cover" special keywords: https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
26th Mar 2018, 2:51 PM
visph
visph - avatar
+ 1
tnx for the link it worked for the cover and some positioning.
27th Mar 2018, 4:15 AM
Leoulg
Leoulg - avatar