View Full Version : Is there a way to make the background image adjust to screen resolution like this?
04-08-2011, 01:36 AM
Is there a way to make the background image adjust to screen resolution like this site?
04-08-2011, 01:56 AM
There is. I did not look to see how that link is doing it but a very simple jQuery solution can be found here (http://johnpatrickgiven.com/jquery/background-resize/).
Another solution might be a CSS only method (http://nopeople.com/CSS%20tips/background_image_resize/index.html). It doesn't preserve aspect ratio though and, for many new coders, seems to be more complicated.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.