Forum Moderators: not2easy

Message Too Old, No Replies

Css Rescale background image to fit frame

         

Paaasssooo

12:42 pm on Sep 20, 2003 (gmt 0)

10+ Year Member



Hi,

I have this problem: I want to use a large picture for background. The size is bigger then the size of the frame I want to use it in. How can I rescale my image so it allways takes the size of the frame? In css offcourse.

Thanx

RonPK

9:00 pm on Sep 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Paaasssooo,

1. how to pronounce that name ;)
2. welcome to WebmasterWorld!
3. AFAIK there is no way to set the size of a background image. A possible solution could be to create two layers. The first layer should contain the image, using a normal image tag. Set the layer's width and the image's width to 100%. Position the second layer on top of the first one, using CSS position properties.

Paaasssooo

10:22 pm on Sep 20, 2003 (gmt 0)

10+ Year Member



Hèhè, you can say P. ;) Thx for your reaction.

What do you mean by creating two layers? I'm thinking of this: A table with my image as background. And in that table another table with no image as background. I think this might work, only is it what you mean?

Thx, P ;)