Learn Basic CSS by Building a Cafe Menu - Step 43

Please, i need help with this.
Thanks

  **Your browser information:**

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

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

Link to the challenge:

It would be good if you can post your code instead of a screenshot.

From the screenshot it is hard to find the exact problem, but it looks like you need to give a class of item to the article elements, you have given item1, item2… instead of item.

(post deleted by author)

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;
  width: 50%;
}

.price {
  text-align: right;
  width: 50%;
}

.item2 p {
  display: inline-block;
}

.flavor2 {
  text-align: left;
  width: 50%;
}

.price2 {
  text-align: right;
  width: 50%; 
}

.item3 p {
  display: inline-block
}

.flavor3 {
  text-align: left;
  width: 50%;
}

.price3 {
  text-align: right;
  width: 50%; 
}

.item4 p {
  display: inline-block;
}

.flavor4 {
  text-align: left;
  width: 50%;
}

.price4 {
  text-align: right;
  width: 50%;
}

.item5 p {
  display: inline-block;
}

.flavor5 {
  text-align: left;
  width: 50%;
}

.price5 {
  text-align: right;
  width: 50%;
}
<!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">
      <header>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
      </header>
      <main>
        <section>
          <h2>Coffee</h2>
          <article class="item">
            <p class="flavor">French Vanilla</p><p class="price">3.00</p>
          </article>
           <article class="item2">
            <p class="flavor2">Caramel Macchiato</p><p class="price2">3.75</p>   
          </article>
          <article class="item3">
            <p class="flavor3">Pumpkin Spice</p><p class="price3">3.50</p>          
          </article>
          <article class="item4">
            <p class="flavor4">Hazelnut</p><p class="price4">4.00</p>           
          </article>
          <article class="item5">
            <p class="flavor5">Mocha</p><p class="price5">4.50</p>           
          </article>
       </section>
      </main>
    </div>
  </body>
</html>
.

“Start by adding the class item to the other article elements.”

You added class “item1”, “item2”, …

You want to add class “item” to all of the articles.

Also, do not add any classes to the p elements yet. You will do that in the next steps.

1 Like

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