Forum Moderators: not2easy

Message Too Old, No Replies

How to set DIV to fill up entire table cell

height: 100% doesn't work

         

wfernley

2:20 pm on Dec 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone,

I have a couple websites that have DIV tags using CSS to create a box using the Border style.

There are two boxes in a table. The table contains two cells that take up 50% of the page. So basically, the two DIV tags containing the border style are next to each other. They work fine however if one box has more text in it than the other, they do not appear the same size. The one DIV containing the most text will fill up the entire table cell but the other DIV will only fill up part of the cell.

Is there anyway to tell a DIV tag using CSS to fill up an entire table cell?

Please let me know if this is possible.

Thanks in advance for your help!

Wes

penders

12:48 pm on Dec 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just curious... if you have DIV's inside TD's that are meant to take up the entire space of the TD, why have a DIV? ... and just style the TD instead?