Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scaling background image

Status
Not open for further replies.

RedRobotHero

Technical User
May 2, 2003
94
CN
Is there any way to scale the background image? I'm looking to do so dynamically, but first I need to find out if it's possible at all.
 
all i know of is to have differnet versions of a style sheet and have javascript point the correct one depending on screen resoluiton

[Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
But are you saying that I would just need several different-sized versions of the background image? Or is there a way to set the scale of the background image?
 
it can be done with javascript i think but it looks ugly....

[Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
I don't think it can be done with Javascript, The background image has no height or width properties as far as the DOM is concerned, it is what it is.

You might be able to use filters (IE 5.5+ only) to resize, but I doubt it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top