Is the background image able to be repeated?
If so you can add this line to the css for the background
Main Topics
Browse All TopicsHi all,
I am developing a joomla site with a background image. On different video resolutions the site will look different. Is there a way to scale the background image automatically on basis of the resolution of the screen?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here's some info on the upcoming standard: http://www.css3.info/previ
that might help on some browsers, but it doesn't appear to be a Microsoft-enabled solution at the moment.
The following blog posts shows an example of how to emulate the behavior you're after.
http://www.markschenk.com/
Here is a more manual method to solve the same issue:
http://bytes.com/topic/jav
The above shows how to write up a javascript function that will execute and dynamically select the proper image based on resolution. This depends on you having multiple background images; one for each resolution for which you want to account.
Here's another option that appears to have solved the issue for some people:
http://stackoverflow.com/q
Let me know if there's anything specific about these that doesn't work for you!
Along teh same lines as Rsulliv1 - I beleive you could do this by having a different stylesheet for each resolution e.g template_1024.css - template_600.css etc.
Each could be the same except for background image. In the index.php file of your template you could then use javascript to detect teh browser resolution and perhaps a switch / or other conditional statment to select template no.css. If your template has several css files just make sure the file called is teh one that imports teh other files.
Hope this helps:
THis link may be useful to you :
http://www.sightspecific.c
jbt's comment reminded me of one other option:
If you want to go real technical, you could use imagemagick and php to dynamically render a version of your background pic based on the availableWidth on the browser, but that would require a bit of work to ensure thread-safety for multi-users, caching, a good response time, etc... I don't know if there's something out there that already encapsulates this functionality, but I think it's technically possible.
I think it would be overkill, but we're trying to be thorough for you :)
Business Accounts
Answer for Membership
by: KravimirPosted on 2009-08-04 at 15:17:31ID: 25018737
Short answer: no.
Long answer: In CSS2.x background-images can't be scaled, however, you can use an absolute positioning trick to achieve the same affect with an inline image. Here's an example:
Select allOpen in new window