Background Image

They have: 15 posts

Joined: Jun 2001

Hey everybody. You know how on your desktop you can stretch an image accross your entire screen instead of tiling it? Well, I wanted to do that with an image for my background. Is there a way to do that with DHTML or something like that?

~DizzE :sunny:

detox's picture

They have: 571 posts

Joined: Feb 2001

first thought was to get the screen size and dynamically write the image tag with those sizes as variables, but obviously the image would blow out and be warped etc. (unless it was of the same dimensions, but at a different ratio etc - like 50 x 50, being stretched to 100 x 100)

Anyway, there are server side image apps that will create dynamic images (sizes) they are majoritively for thumbnails, but who am I to say that you couldn;t increase the size as well as decrease it.

They have: 105 posts

Joined: Jun 2001

It can be done with CSS, look at hfg.be.tf I used something simular.

They have: 15 posts

Joined: Jun 2001

Thanks Gybro and detox for your help... you guys hit the nail right on the head. Gybro, that page you gave me was exactly what i was talking about. Take care!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.