Results 1 to 3 of 3

Thread: (HTML & CSS) Is there a equivilent to td's valign?

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML & CSS) Is there a equivilent to td's valign?

    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
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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)

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Awesome I swear I tried to do that before (about a month ago) but I guess I must not have.
    Thanks!
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width