CSS Table Generator

Generate styled HTML tables with CSS

Browser ProcessingYour data never leaves your browser

Table Style

Colors

Header Bg
Header Text
Row Bg
Row Text
Alt Row Bg
Border Color
Hover Bg

Spacing & Borders

Cell Padding12px
Border Width1px
Border Radius8px
Font Size14px

Options

Preview

NameEmailRoleStatus
John Doejohn@example.comDeveloperActive
Jane Smithjane@example.comDesignerActive
Bob Johnsonbob@example.comManagerInactive
Alice Brownalice@example.comDeveloperActive
Charlie Wilsoncharlie@example.comDesignerActive

CSS

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  background-color: #f3f4f6;
  color: #111827;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}
.table td {
  padding: 12px;
  color: #374151;
}
.table tbody tr {
  background-color: #ffffff;
  transition: background-color 150ms ease;
}
.table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.table tbody tr:hover {
  background-color: #f3f4f6;
}

HTML Structure

<table class="table">
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell 1</td>
      <td>Cell 2</td>
      <td>Cell 3</td>
    </tr>
  </tbody>
</table>