Previous Message
Next Message

Re: [css-d] vertical align and doctype

Sent by ecd on 29 January 2002 22:10

todd fahrner wrote:
Andrew advised:
A>> michael robertson [EMAIL-REMOVED]> wrote:
MR>>> [vertical-align on <tr>]
MR>>> Works fine until I add the doctype for transitional 4.01. What wrong?
A>> ISTR you can't vertical-align rows in CSS - you have to do it on the
A>> cells instead. Try <td class="mid">, that should do the trick.

TF> or better, keep the class on the tr, and use:

TF> .mid td { vertical-align: middle }

woohoo! i came up with the same (virtually!) solution as the amazing mr.
fahrner! woohoo!

here's mine (thanks, andrew. now i know not to post from work. i'll try to
remember not to do that in the future)

> Andrew Clover [EMAIL-REMOVED]> wrote:

AC>> Forwarding message from ecd [EMAIL-REMOVED]>, as it's decent
AC>> advice which I imagine he meant to reply to the list with. :-)

AC>> Andrew Clover [EMAIL-REMOVED]> wrote:
AC>>> Try <td class="mid">, that should do the trick.

ecd> alternatively, to keep your code weight down, you could use

ecd> tr.mid td {
ecd>     vertical-align : middle ;
ecd> }

yay! i don't suck!

code artist -
edge team leader -
friend of the traffic lights - every time i drive
Previous Message
Next Message

Possibly related: