views:

22

answers:

1

I'm trying to fit an image into a <td> that is smaller than the actual image, but I don't want the cell to grow to accomodate the image. Instead, I want the image to float above the cell.

How can I do this?

+1  A: 

To remove an element from the page structure, use absolute positioning:

td {position: relative;}
td img {position: absolute; top: -20px; left: -20px;}
Ian Wetherbee
I don't know the absolute position of the image. It depends on the page contents.
Pieter
All Ian has done is made the `img` inside the `td` be absolutely positioned based on it's relative position inside the `td` not the`body`. If that makes sense?
Jonny Haynes
On my page, it is displayed relative to the body and not the `td` as you suggest.
Pieter