CSS Vertical Alignment
Written by Moe on May 3, 2006 |
3 Comments
3 Comments I just came across something kind of dumb. If you are using a CSS stylesheet and want to change the valign of a data table you have to use “vertical-alignment” instead of “valign”. Even though valign is the correct syntax for html.
td
{
vertical-align: top;
}
Im sure most people might know this, but I didn’t and it confused me for a good 5 minutes.
it only works for text. vertical-align does not do everything valign did.
Comment by greg — May 4, 2006 @ 6:22 am
CSS stylesheets piss me off too. valign, shmealign
Comment by Kenny — May 4, 2006 @ 7:39 am
Yea i noticed that too Greg. And Kenny, CSS stylesheets can save you a lot of time friend.
Comment by Moe — May 4, 2006 @ 3:18 pm