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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access