• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

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.
0
AllHale
Asked:
AllHale
  • 2
1 Solution
 
QPRCommented:
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now