table
  thead
    th  name 
    th salary
    th sex
  tbody
    tr
      td Hien
      td $100
      td female
    tr
      td Nam
      td $1000
      td male
    tr
      td Thuy
      td
        table
          thead
            th main salary
            th side salary
          tbody
            tr
              td $900
              td $100
      td female
View Compiled
table {
  font-family: 'Istok Web', Tahoma, sans-serif;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
  border-collapse: collapse;
  border-spacing: 0;
}
table {
  margin: auto;
  width: 100%;
}
table, td, th {
  padding: 10px;
  text-align: left;
  border: 1px solid #000;
  vertical-align: top;
}
th {
  background-color: #666;
  color: white;
  letter-spacing: 1.5px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.