My question is very simple, does calc()
work for background size of a background image in pure CSS...
Right now I am fixing a background image for responsive mobile view... I want the image to stay fixed in ratio of the screen but resize on any mobile screen...
I implemented this code, it's not working currently:
@media (max-width: 767px) {
body {
background-size: calc(100%-200px) auto;
background-repeat: repeat;
}
}
Is it possible in pure CSS?