We can use CSS to define the style of the table. The following properties are commonly used to style
CSS border properties are used to define borders -width, border-style and border- color.
This attribute is used to specify whether
caption-side property is used to position the table title box vertically.
This property is used to specify the display of empty cells in the table.
Defines the algorithm used by the browser to lay out the rows, columns, and cells of a table.
The following example illustrates the style of the table-
Real-time demonstration
This This gives the following output -

Live Demonstration
Team Rankings
Team (Test) Rank India 1 Australia 2
Team (ODI) Rank India 1 England 2
This gives the following output -

The above is the detailed content of Basic CSS properties for style sheets. For more information, please follow other related articles on the PHP Chinese website!