Tutorials Bugs Masterclass Free stuff Test pages Proposals

Core tests

Advanced tests

This test

RichInStyle.com tests: padding

This is a control. This is a control. This is a control. This is a control. This is a control.

Note for all the examples below, paddings are colored by background.

  1. This should have a 100px padding on all sides

    This is a control.

  2. This should have a 50px vertical padding and 100px horizontal paddings.

    This is a control.

  3. This should have a 50px top padding, 150px bottom padding and 100px horizontal paddings.

    This is a control.

  4. This should have a 50px top padding, 100px right padding, 150px bottom and 200px left padding.

Negative padding tests

This is a control.

  1. This has negative padding, but shouldn't look any different from normal since negative padding is illegal and should be ignored.

    This has negative padding, which should be ignored. However, since the declaration is padding-top: 100px; padding-top: -20px, that should result in reversion to 100 pixels, and therefore this should have padding of 100 pixels.