CSS Vertical Alignment
Written by Moe on May 3, 2006 |
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.
Posted in Life Stuff
![[del.icio.us]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/google.png)
![[StumbleUpon]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/email.png)
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