Learn Basic CSS by Building a Cafe Menu - Step 33

I’m confused on flavor as the selector.
Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <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"/>
    <div class="menu">
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
            <p class="flavor">French Vanilla</p>
            <p>Caramel Macchiato</p>
            <p>Pumpkin Spice</p>
/* 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;

/* User Editable Region */

    p {
      text-align: left

/* User Editable Region */

Your browser information:

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

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

Link to the challenge:

this is a paragraph element selector

You want a .flavor class selector instead

I dont understand why do I need a period before the class?

in css, if you don’t use a period, the browser will think you want to find an element whose name is flavor
Obviously there is no such element <flavor>
If you add the dot then the browser will know that you want to find an element whose -class- is flavor. success.

1 Like

It accepted the code but it doesnt look right. the flavor is all to left

the property you set is text-align: left. So if the flavor went to the left, then it worked.