In this video i will talk about Tables in CSS.
Table Borders
To specify table borders in CSS, use the border property.
Collapse Table Borders
The border-collapse property sets whether the table borders should be collapsed into a single border
Table Width and Height
Width and height of a table are defined by the width and height properties.
Horizontal Alignment
The text-align property sets the horizontal alignment (like left, right, or center) of the content in th or td. By default, the content of th elements are center-aligned and the content of td elements are left-aligned.
Vertical Alignment
The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in th or td. By default, the vertical alignment of the content in a table is middle (for both th and td elements).
Table Padding
To control the space between the border and the content in a table, use the padding property on td and th elements
The border-spacing property sets the distance between the borders of adjacent cells.
The caption-side property specifies the placement of a table caption.
The empty-cells property sets whether or not to display borders on empty cells in a table.
The table-layout property defines the algorithm used to lay out table cells, rows, and columns.