469,344 Members | 6,672 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

Autosizing Backgrounds

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
4 1368
AricC
1,892 Expert 1GB
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
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
AricC
1,892 Expert 1GB
Did you try putting the image in a table or div?
Nov 1 '06 #4
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.

Similar topics

1 post views Thread by RoDzZzZ | last post: by
2 posts views Thread by Greg Locke | last post: by
6 posts views Thread by Rik Brooks | last post: by
1 post views Thread by alice | last post: by
3 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
6 posts views Thread by Johan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.