tables

CSS Tables

CSS Tables

Introduction to CSS Tables

CSS table properties allow you to control the appearance and layout of table elements.

CSS Table Properties

Example


table {
    border-collapse: collapse;
    width: 100%;
}
td, th {
    border: 1px solid black;
    padding: 8px;
}
        

Browser Support

All major browsers support table properties.