By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,347 Members | 2,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,347 IT Pros & Developers. It's quick & easy.

Autosizing Backgrounds

P: 9
Is there a CSS code to make my background image to where it will automatically resize to the resolution of your screen?
Oct 30 '06 #1
Share this Question
Share on Google+
4 Replies


Expert 100+
P: 1,892
Try this


You may want to use something that repeats as your background image. Depending on the size of your image it will take longer for your page to load, also if someone comes to your site with a monitor res bigger than your image the image will stretch.

HTH,
AricC
Oct 30 '06 #2

P: 9
well i would but the whole theme of my site would be ruined if i changed the bg. so that isnt an option.
Nov 1 '06 #3

Expert 100+
P: 1,892
Did you try putting the image in a table or div?
Nov 1 '06 #4

P: 9
well i put the bg in a table but the picture stays the same size and it negates the no scroll code. also what is a div?
Nov 1 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.