I've went through all the relative answer in stackoverflow but haven't find the perfect fit. I am trying to make .background img fit the user's browser size no matter how user tries to resize the browser. Some relative questions are:
- How can get the div background image to scale to the page size?
- Fit website background image to screen size
- Stretch and scale a CSS image in the background - with CSS only
I am trying to create an effect similar to this site(it is mentioned on the Bootstrap official website as an example): http://riot.design/en/. Try to resize the browser and you will find out that the background img always scales and fits.
Is there a good way to achieve this effect?