I want my background-image to be always at the same height with the user's desktop screen. Is this possible?
Asked
Active
Viewed 91 times
0
-
Yes, it is possible, how does the markup you use look like? – Asons Feb 02 '17 at 09:22
2 Answers
0
This should be possible to do by setting the height of the image to a height of 100vh but this isn't supported in IE8 or lower.

TopHat Yami
- 36
- 6
0
Try this on the body (or the container that has the background image):
body {
background-size: contain;
}

Hamza Ishak
- 360
- 4
- 16