Build a Page of Playing Cards - Build a Page of Playing Cards

Tell us what’s happening:

Hello freeCodeCamp team,

I’m working on the “Build a Page of Playing Cards” lab in the Responsive Web Design Certification.

Tests 1–7 pass, but tests 8–18 fail. The checker repeatedly says:

“You should have a #playing-cards selector that sets its elements’ display to flex.”

My CSS contains:

#playing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

I have manually retyped the CSS, checked that #playing-cards appears only once, and conf

Your code so far

<!-- file: index.html -->
<h1>Playing Cards</h1>

<main id="playing-cards">
  <div class="card">
    <div class="left">A<br>♥</div>
    <div class="middle">
      <span>♥</span>
    </div>
    <div class="right">A<br>♥</div>
  </div>

  <div class="card">
    <div class="left">K<br>♠</div>
    <div class="middle">
      <span>♠</span>
    </div>
    <div class="right">K<br>♠</div>
  </div>

  <div class="card">
    <div class="left">Q<br>♦</div>
    <div class="middle">
      <span>♦</span>
    </div>
    <div class="right">Q<br>♦</div>
  </div>
</main>
/* file: styles.css */
#playing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  width: 150px;
  height: 220px;
  display: flex;
  justify-content: space-between;
}

.left {
  align-self: flex-start;
}

.middle {
  align-self: center;
  display: flex;
  flex-direction: column;
}

.right {
  align-self: flex-end;
}

Your browser information:

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

Challenge Information:

Build a Page of Playing Cards - Build a Page of Playing Cards

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-page-of-playing-cards/66be24cb4144f955b6bcc550.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @bandilefrank

The HTML code you supplied does not include a link element.

Happy coding