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

Tell us what’s happening:
Describe your issue in detail here.

So the instructions for Step 4 tells us to add two new span elements with some texts within our pre-existing .flex span element. The hint tells me that my first new span element should have the text AcmeWidgetCorp. The problem persists if I put the whole element in one line.

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>

<!-- User Editable Region -->

          <span class="flex">
            <span>
              AcmeWidgetCorp
            </span>
            <span>
              Balance Sheet
            </span>
          </span>

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 OPR/97.0.0.0

Challenge: Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 4

Link to the challenge:

Hello welcome to our Forum. You code has passed on my side. I recommend you check for existing extensions or reset the question then give it a try.

I’ve reset the question multiple times with no luck. Can you elaborate existing extensions?

Nevermind, apparently formatting here was the issue. I’ve changed the code from

<span class="flex">
            <span>
              AcmeWidgetCorp
            </span>
            <span>

to

<span>AcmeWidgetCorp</span>

and it worked!
It seems that any space or tab ruins it and I kinda get why?
Thanks for the help

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