Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 7

Tell us what’s happening: I am getting this error message: Sorry, your code does not pass. Keep trying.

You should create a new div element.

Describe your issue in detail here. What do I need to do.

Your code so far

<!-- 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" >


<!-- User Editable Region -->

        </div>
        <div class="table-wrap">
          <table></table>
          <table></table>
          <table></table>
        </div>

<!-- User Editable Region -->

      </section>
    </main>
  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0

Challenge Information:

Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 7

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

try to delete this ,

Sorry, that didn’t help.

can you post your updated code ?
you have two divs class table-wrap…

I tried what you recommended and it didn’t help so I returned the code to the original state posted above. Could you explain how your original suggestion was supposed to help, since it when against the challenge: Below your existing div element, add a new div element with a class set to table-wrap. This will be the container for your tables.

Within that, add three table elements. You will be using CSS to style these into a single table, but using separate tables will help screen readers understand the document flow.

add a new div element with a class set to table-wrap(you have two divs )
and you should have one
live the one with the table inside…delete one above…

I didn’t notice first defective

.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.