Saiba mais sobre os pseudosseletores em CSS criando uma folha de saldo - Passo 13

Nao consigo entender onde estou errando…

Seu código até o momento

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Balance Sheet</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <main>
      <section>
        <h1>
          <span class="flex">
            <span>AcmeWidgetCorp</span>
            <span>Balance Sheet</span>
          </span>
        </h1>
        <div id="years" aria-hidden="true">
          <span class="year">2019</span>
          <span class="year">2020</span>
          <span class="year">2021</span>
        </div>
        <div class="table-wrap">
          <table>
            <caption>Assets</caption>
            <thead>
              <tr>
                <td></td>
                <th><span class="sr-only year">2019</span></th>
                <th><span class="sr-only year">2020</span></th>
                <th class="current"><span class="sr-only year">2021</span></th>
              </tr>
            </thead>
            <tbody>

<!-- User Editable Region -->

              <tr class="data">
                <th>Cash<span class="description">This is the cash we currently have on hand.</span></th>
                <td>$25</td>
                <td>$30</td>
                <td class="current">$28</td>
              </tr>

<!-- User Editable Region -->

              <tr class="data">
              </tr>
              <tr class="data">
              </tr>
              <tr class="total">
              </tr>
            </tbody>
          </table>
          <table>
          </table>
          <table>
          </table>
        </div>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

Informações de seu navegador:

Agente de usuário: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Desafio: Saiba mais sobre os pseudosseletores em CSS criando uma folha de saldo - Passo 13

Link para o desafio:

Olá, Stefany!

Verifique a linha 40 do seu código, por favor.
Acredito que o problema esteja na th :
<th>Cash<span class="description">This is the cash we currently have on hand.</span></th>

Coloque um espaço entre a palavra “Cash” e a abertura da tag <span>. Isso deve resolver o problema.
Sem esse espaço, o resultado é uma união das palavras “CashThis”, quando deveríamos ter “Cash This”.

Espero ter ajudado :grinning:

2 Likes

Jogando a parte do <span> para a próxima linha abaixo ele aceita