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

Background image size of screen 1

Status
Not open for further replies.

delorfra

Programmer
Mar 8, 2001
79
FR
Hi,

Basic question :

How to get the backgound image to resize depending on the user screen size to avoid tiling the image.

Thanks
 
hie
i dont think u're able 2 resize the background image (but i bet i am wrong) but here's my suggestion:
1 make dfrnt images (for standart resolutions such as 800x600, 1024x768, etc.)
2 check for screen size
3 write background image dependin on user's resolution
smth like
if (screen.width==800 && screen.height==600)
document.write(&quot;<body background=&quot;+for800x600.gif+&quot;>&quot;)

or smth like that.. regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top