Learn Basic CSS by Building a Cafe Menu - Step 37

Tell us what’s happening:
Describe your issue in detail here.
So I am not sure why .item p { } does not work?
I put this coding in visual studio code and it works. I even thought it was just about spacing but I tried to adjust that and nothing. I can’t proceed on this assignment at all. All of the article is classed with “item”
It just keeps telling me that I should use the .item p {} which I did, hence why it worked in visual studio code.

If anyone had similar problems with this step pls help me so I can proceed.
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>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div class="menu">
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
          <article class="item">
            <p class="flavor">French Vanilla</p> <p class="price">3.00</p>
          </article>
          <article class="item">
            <p class="flavor">Caramel Macchiato</p><p class="price">3.75</p>
          </article>
          <article class="item">
            <p class="flavor">Pumpkin Spice</p><p class="price">3.50</p>
          </article>
          <article class="item">
            <p class="flavor">Hazelnut</p><p class="price">4.00</p>
          </article>
          <article class="item">
            <p class="flavor">Mocha</p><p class="price">4.50</p>
          </article>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
}

h1, h2, p {
  text-align: center;
}

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}
.
.item p{
  display: inline-block;
}

.flavor {
  text-align: left;
}

.price {
  text-align: right;
}

Your browser information:

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

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 37

Link to the challenge:

Hi!
It looks like you have an extra period below your menu selector and above the .item p selector. The extra period is on its own line.

2 Likes

hello thank you for the quick reply. Yes! I just noticed that a second ago. OMG! it took me way too long to see until I posted it here.

1 Like