...

View Full Version : Is there a way to make the background image adjust to screen resolution like this?



shmoomoo
04-08-2011, 02:36 AM
Is there a way to make the background image adjust to screen resolution like this site?
Without the super complicated javascript/jquery in their page source?

http://www.ilovebiko.com/ (www.ilovebiko.com)

Excavator
04-08-2011, 02:56 AM
Hello shmoomoo,
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum