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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stretching the Background image of a webpage to appropriate resolution

Status
Not open for further replies.

mark01

Technical User
Jan 17, 2001
600
US
I have a background that I want to have automatically stretched (while maintaining ratio's) to appropriate resolution, when viewed in a web-browser. For example, I have a 1024x768 background picture that needs to be stretched for a person who view's this web page at 800x600. Does anyone have any idea's on how to do this???
 
(screen.width/(1024/340)) where 340 is the width of the picture in case of the screenwidth is 1024. Same thing for the height...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top