Setting a Background with Images that are Stretched instead of tiled?

This should be an easier one for you guys. You know when you set a background as an image, it tiles, leaving multiple overlapping pictures. But what do I do if I want the picture stretched instead? I appreciate your help. Thanks guys.
AllHaleAsked:
Who is Participating?
 
QPRConnect With a Mentor Commented:
Like on Windows desktop wallpaper you mean?
Hmmm you can use CSS and set the BG to not tile but it will only be the size of your original image.
Perhaps you could use Javascript to size the image to be the available height and available width of the clients resolution.
Could look ugly though.
0
 
Jason C. LevineNo oneCommented:
Hi AllHale,

QPR is right on both counts.  You cannot use CSS to stretch the image, but you can use it to not repeat the image.  You could use javascript to detect window size or screen resolution and set the image properties that way, but it is not reliable at all.
0
 
AllHaleAuthor Commented:
Thanks guys. Once again you come to my aid, and also reveal the limitations of the software. I'll do my best to make the pictures work.
0
 
Jason C. LevineNo oneCommented:
It's not a limitation of the software, it's a limitation in HTML/CSS protocols...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.