Using your new flavor class as a selector, set the text-align property's value to left

Tell us what’s happening:
I am stuck on this challenge and I’m not sure what the issue is. I need to use a selector (flavor) to {left-align} some text. Below is the code I have inputted but I get an error message:

.flavor={text-align: left}

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <link rel: "stylesheet" type="text/css" href="styles.css" </link>
  <meta charset="utf-8"/>
  <title>Cafe Menu</title>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
<html>
/* file: styles.css */
h1, h2, p {
text-align: center;
}
  **Your browser information:**

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

Challenge: Step 17

Link to the challenge:

the link tag has no closing tag its a self closing tag like this <link />. also replace : with = after rel attribute

Got it, thanks!

.flavor
{text-align: left}

Had a = when I didn’t need one. Solved!

2 Likes

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