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

Stretch Image in Table Cell 1

Status
Not open for further replies.

SpiderBear6

Programmer
Sep 17, 2003
422
AU
Is it possible to get an image to stretch to the full extent of a table cell?

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
Actually never mind ... I don't think you can do this.

--------------------------------------
"We are star-stuff. We are the universe made manifest trying to figure itself out."
-- Delenn in Babylon 5 - "A Distant Star"
 
Try this:

Code:
<img src=&quot;/path/to/image.gif&quot; style=&quot;width: 100%; height: 100%;&quot;>

Good luck :)

Take Care,
Mike
 
If you want it to change size when the table changes size, e.g. when the browser window size is changed, you'll need to use javascript to dynamically update it. Let me know if you need that code.

Take Care,
Mike
 
Thanks for replying Michael... but I designed my way out of needing it. A star for your trouble.

--------------------------------------
&quot;We are star-stuff. We are the universe made manifest trying to figure itself out.&quot;
-- Delenn in Babylon 5 - &quot;A Distant Star&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top