Skip to content
Discussion options

You must be logged in to vote

Style for <thead> will not apply because <thead> doesn't have background color or font weight.
Every <th> cell has the style.
So you should either apply that bg-white font-semibold classes to each cell,
or use class names like this to target the <th> child elements: [&_th]:bg-white [&_th]:font-semibold

<table class="table w-full">
  <thead class="[&_th]:bg-white [&_th]:font-semibold">
    <tr>
      <th class="rounded-none">Name</th>
      <th>Date Start</th>
      <th>Date End</th>
      <th>Progress</th>
      <th class="rounded-none">Action</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cy Gandertonasdfjsdjafkjsadflkjsfjsdfljasldfj</td>
      <td>Quality Control Specialist</td>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anscsmwn
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants