Current Situation: In the process of developing an application that involves setting a background image, I aim to make it compatible with mobile, desktop, and tablet devices.
Query:
I am seeking advice on the most effective method to stretch and display the image without causing page lag. How can I implement fluid design?
Code Example:
This is my current approach. Any suggestions for improvement would be appreciated!
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}