optizyme Posted September 4, 2013 Share Posted September 4, 2013 Hi folks, I set a background image to my web site in global.css Everything works fine till i tried to change my resolution. Here is my background : http://i.imgur.com/m6oiDk1.jpg As you see, two borders on left and right side. My laptop's resolution is 1366 x 768. I changed to 1024x768 and 1980x1020. Background image messed up the pages. My global.css : body{ font:normal 11px/14px Arial, Verdana, sans-serif; color:#222; background-image:url('bgBody.jpg'); background-position:top center; background-size: contain; } How do i adapt my background image to all resolutions? Opti Link to comment Share on other sites More sharing options...
PascalVG Posted September 5, 2013 Share Posted September 5, 2013 This may help: http://stackoverflow.com/questions/3147992/set-background-image-according-to-screen-resolution Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now