Forum Moderators: not2easy

Message Too Old, No Replies

Floating Icon Images

how to setup a floating thumbnail such that it doesn't take up space

         

khill

10:36 pm on Sep 12, 2006 (gmt 0)

10+ Year Member



I have a table that has a random number of rows in it.

I'd like to insert a span into each TD tag, such that the thumbnail images of 80x80 does not "expand" the actual row.

Is there CSS that will do this?

Basically:

[table][tr][td]
[img src="the image"] <-- this is an 80x80 image
Table Text
[/td][/tr]
...repeat...
[/table]

With this, the row is 80px high. I need the image to leave the table row height alone, such that the text only affects it.

Any ideas?

Setek

2:13 am on Sep 13, 2006 (gmt 0)

10+ Year Member



Make it a background image on the
td
, with padding-left to push the text away from it :)

Background images won't expand layout :)

khill

5:51 pm on Sep 14, 2006 (gmt 0)

10+ Year Member



I figured it out.

It's basically doing a [div] with a position:relative that's just inside the [td] tags. Then, hanging the thumbnail into another [div] inside that with a position:absolute; and left:-100px; and leaving the top style identifier out.

Kevin