469,958 Members | 2,035 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,958 developers. It's quick & easy.

how to make <dis>'s behave like <td>'s?

this will be hard to explain.
picture a <tablewith 3 columns. if you type text into the center column
and hit enter a bunch of times, all 3 columns expand vertically to fit the
content you put in the middle column.

I want to duplicate this with <divtags.

if I have 3 <div>'s floating next to each other so that they line up, and I
type and hit enter in the middle div, it grows vertically while the other 2
stay put. is there any way to make it so that they all "grow" together?
(without a bunch of messy javascript)

Sep 29 '06 #1
1 1845
Santos L Halper wrote:
I want to duplicate this with <divtags.
I haven't tried this but see if div.someclass {display: table-cell;} works.

| Brendan Gillatt |
| brendan {at} brendan \removethis// gillatt {dot} co {dot} uk |
| http://www.brendangillatt.co.uk |
| PGP Key: pgp.mit.edu:11371/pks/lookup?op=get&search=0x6E265E61|
Sep 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Cook | last post: by
1 post views Thread by amith | last post: by
reply views Thread by patsy.chu | last post: by
4 posts views Thread by 2good2b | last post: by
8 posts views Thread by Pallav singh | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.