I need to verticly align the contents of my cells in a table (it is a calendar) and rather add it to the class than to each td.
Michael
Printable View
I need to verticly align the contents of my cells in a table (it is a calendar) and rather add it to the class than to each td.
Michael
Taken from a CSS1 tutorial I found from the W3C's site:
vertical-align: <value>
Possible Values: baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage>
baseline (align baselines of element and parent)
middle (align vertical midpoint of element with baseline plus half the x-height--the height of the letter "x"--of the parent)
sub (subscript)
super (superscript)
text-top (align tops of element and parent's font)
text-bottom (align bottoms of element and parent's font)
The keywords affecting the positioning relative to the element's line are
top (align top of element with tallest element on the line)
bottom (align bottom of element with lowest element on the line)
Awesome :) I swear I tried to do that before (about a month ago) but I guess I must not have.
Thanks!
Michael