Borders and Padding

Although border and padding properties can be used with many objects, including block objects, they are most commonly used with tables. These properties include

  • border-style— This property allows you to select the style of the border for an object. Values for the border-style include solid, dotted, dashed, groove, and so on.

  • border-width— This property defines the width of the border and accepts unit values, such as pt, px, and so on.

  • border-color— The border-color property defines the color of the border of an area. It accepts color keyword values or hex color values.

  • padding— The padding property specifies the amount of padding (in units) from the edge of an area rectangle. One of the most common uses for padding is to ...

Get Special Edition Using XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.