Wednesday, December 28, 2011

CSS - Vertical-Align:TextTop

In setting up my new site I did a very simple layout with no CSS for placement.  To solve a two-column problem I did a table with two <td> elements.  To make sure the text was placed right I added the following to ensure text was pushed to the top of each column (this is not the default behavior):
td
{
    vertical-align:text-top;
}
this way, all td elements will automatically push the text to the top of each column.  To get more information on this visit:
http://www.w3schools.com/cssref/pr_pos_vertical-align.asp

0 comments:

Post a Comment