return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
HTML quick question
View this Thread in Original format
Nell
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
Maaz
where's "height"? The image won't fit if you don't add this parameter :)
DigiNut
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. ;)
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement