TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- HTML quick question


Posted by Nell on Aug-26-2003 02:24:

HTML quick question

i have an image that im setting as the background to a table. how do i make the image stretch to the size of the table?! (presuming that it is possible) ive tried stretch="true" but no success.

code:



what am i missing?

thanks,

Nell


Posted by Lira on Aug-26-2003 02:35:

where's "height"? The image won't fit if you don't add this parameter


Posted by DigiNut on Aug-26-2003 02:41:

What you're trying to do is not possible per se, but there are workarounds. First decide:
- Do you need things to be placed over the background image, or just the stretched image?
- Is it OK with your web page to have absolute positioning on both the table and the background image?

If you just need the image, then use width="100%" height="100%" in an tag... if you really require it as a background and can't just resize it in photoshop, then you need to create two layers using absolute positioning, and use the z-index property to make one the "background."

Edit: If your server supports ASP or PHP, then there is a possibility for you, though it requires a bit of technical goofing around.



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.