CSS TABLE:
allow you to style and enhance HTML tables for better readability and design. With CSS, you can adjust borders, spacing, colors, alignment, and even add hover effects to make data more organized and visually appealing.
PROPERTIES OF CSS TABLES:
- Border
- Border Collapse
- Border Spacing
- Caption SideTable layout(TBD)
- Empty cells(TBD).
BORDER:
defines the appearance of borders around table elements.It specifies the border's width, style, and color.
- table.
- tr.
- td.
- th.
SYNTAX:
border: table_width table_color;
BORDER-COLLABSE:
controls whether the borders of adjacent cells are merged into a single border or kept separate.
SYNTAX:
border-collapse: collapse/separate;
BORDER-SPACING:
property specifies the distance between the borders of adjacent cells when border-collapse is set to separate.
SYNTAX:
border-spacing: value;
CAPTION-SIDETABLE:
specifies the placement of the table caption relative to the table.
SYNTAX:
caption-side: top/bottom;
Top comments (0)