|
Posted by Ben C on November 9, 2007, 3:45 am
Please log in for more thread options
> Can anyone tell me how to center a random amount of text vertically in
> a div so it is centered like it would be in a table cell by default?
> I do not know if JavaScript is applicable here, but I do not want to
> use JavaScript, since it can be turned off. I do not want to have to
> tell the reader to turn it on, either. Thanks.
It's not possible as far as I know without using display: table-cell.
The only way to get IE to approximate the correct behaviour of display:
table-cell is to use a <td>. So if you need IE support, use a table.
|