JSFiddle - React, Tailwind, and code Playground

by 규연 황

HTML

<table>
  <thead>
    <tr>
      <th>title</th>
      <th>title</th>
      <th>title</th>
      <th>title</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>00</td>
      <td>00</td>
      <td>00</td>
      <td>00</td>
    </tr>
    <tr>
      <td>00</td>
      <td>00</td>
      <td>00</td>
      <td>00</td>
    </tr>
    <tr>
      <td>00</td>
      <td>00</td>
      <td>00</td>
      <td>00</td>
    </tr>
  </tbody>
</table>

CSS

body {
  background: #fff;
  padding: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #000000;
}
table th {
  background: #e4e4e4;
}
table td {
  border-bottom: 1px solid #666666;
  padding: 5px 10px;
}
table tr > td:first-child {
  position: relative;
}
table tr > td:first-child:before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 20px;
  height: 1px;
  background: #fff;
}
table tbody tr:first-child td:first-child:before {
  content: none;
}
table tr > td:last-child {
  
}