b a d p o p c o r n

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


3 Comments »

  1. it only works for text. vertical-align does not do everything valign did.

    Comment by greg — May 4, 2006 @ 6:22 am

  2. CSS stylesheets piss me off too. valign, shmealign

    Comment by Kenny — May 4, 2006 @ 7:39 am

  3. 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

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .