Please I need help in step 34

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

  **Your code so far**
\ file: <!DOCTYPE html>
<html>
<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" type="text/css" />
</head>
<body>
  <div class="menu">
    <header>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </header>
    <main>
      <section>
        <h2>Coffee</h2>
        <article>
          <p class="flavor">French Vanilla</p>
          <p>3.00</p>
        </article>
        <article>
          <p>Caramel Macchiato</p>
          <p>3.75</p>
        </article>
        <article>
          <p>Pumpkin Spice</p>
          <p>3.50</p>
        </article>
        <article>
          <p>Hazelnut</p>
          <p>4.00</p>
        </article>
        <article>
          <p>Mocha</p>
          <p>4.50</p>
        </article>
      </section>
    </main>
  </div>
</body>
<html>
<!DOCTYPE html>
<html>
<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" type="text/css" />
</head>
<body>
  <div class="menu">
    <header>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </header>
    <main>
      <section>
        <h2>Coffee</h2>
        <article>
          <p class="flavor">French Vanilla</p>
          <p>3.00</p>
        </article>
        <article>
          <p>Caramel Macchiato</p>
          <p>3.75</p>
        </article>
        <article>
          <p>Pumpkin Spice</p>
          <p>3.50</p>
        </article>
        <article>
          <p>Hazelnut</p>
          <p>4.00</p>
        </article>
        <article>
          <p>Mocha</p>
          <p>4.50</p>
        </article>
      </section>
    </main>
  </div>
</body>
<html>
\ file: 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;
}

flavor {text-align: left;}

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;
}

flavor {text-align: left;}

  **Your browser information:**

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

Challenge: Step 34

Link to the challenge:

Hi there,
look at the menu class selector and then look at your flavor selector. What is it missing?

I have tried including all that it seems to be missing but the code won’t pass

.French Vanilla{
  width: 80%;
  background-color: burlywood;
  margin-left: left;
  margin-right: left;
  text-align: left;
}

Hi @harford ,

You shouldn’t add all of this, what you had before was close.

As @shiccoder said, you are missing something, flavor is a class :

I am doing exactly as instructed yet the code won’t pass :sweat:

Can you post your updated code ?


.french Vanilla {
   text-align: left;
}

french Vanilla is not the class name.

Is this what it should be like?

           <p class="flavor">French Vanilla</p>{text-align: left;}

You are now mixing HTML and CSS.

It’s fine to feel a bit confused.

The CSS class selector matches elements based on the contents of their class attribute. Here’s an example :

HTML :

<p class="red">This paragraph has red text.</p>

CSS :

.red {
  color: #f33;
}
1 Like

I am teaching myself that’s why its this hard for me. :sweat: :sweat: :sweat:

1 Like

Calm down. You are doing fine! Ask what part of the challenge you’re confused and we’re happy to help!

2 Likes

I have not done text-align on ‘index.html’ before only on ‘style.css’
How do I set the text-align property’s value to the left? Just a hint and I will catch it fast.

<p flavor="french vanilla"> Text-align: left.</p>

You should not be changing the HTML, only the CSS.

This is close. You should go back to this. But you are not using a class selector.

The . out front here indicates a class selector.

1 Like

You’ve already worked on a similar issue on past steps that you’ve figured out :

1 Like

I will try it again. Thank you

it’s simple don’t get discouraged!
all you need to know is that there is a difference in class selector between CSS & HTML. in css just put a “.” before the class (flavor in this exemple) and the job’s done!

Mod Edit: SOLUTION REDACTED