Tutorials Bugs Masterclass Free stuff Test pages Proposals

Core tests

Advanced tests

This test

RichInStyle.com tests: vertical-align

Text-top test

  1. The top of the image should be aligned with the top of the background.

  2. Sg Sg Sg

    The top of the red 'Sg' should be aligned with the top of the small Sg.

    The background of this should only be behind the text - the background should be 10 pixels high, not 100 pixels.

Text-bottom test

  1. The bottom of the image should be

    aligned with the bottom of the background - not the baseline of the text.

Baseline test

  1. The bottom of the image should be

    aligned with the baseline of the text - not the bottom of the background

Middle test

  1. x The top of the smaller image should be aligned with the middle of the x.

  2. These should not be aligned, since the x-height will be different:

    i i

    Nor these:

    i i

Bottom test

  1. The bottom of the background should be aligned with the bottom of the image.

Top test

  1. The top of the background should be aligned with the top of the image.

Super test

  1. This text should be below the image.

Sub test

  1. The baseline of this text should be above the image.

  2. This should be subscripted.

Length test

  1. This text should be above the image.

  2. This text should be below the image.

  3. The below should appear as three lines of text (even though they are 6; the first DIV has zero line height, so the vertical-align won't affect things).

    One line of text
    One line of text
    One line of text
    One line of text
    One line of text
    One line of text

Percentage test

Future compatibility test

  1. The next three words: that are here have vertical-align: super; vertical-align: newvalue, and should be superscripted, provided super is supported.

  2. The next three words: that are here have vertical-align: super; vertical-align: -1cm, and should be superscripted, provided length is unsupported.