Learn Basic CSS by Building a Cafe Menu - Step 27

Tell us what’s happening:
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"/>
       <h1>CAMPER CAFE</h1>
       <p>Est. 2020</p>
/* file: styles.css */
body {
 background-color: burlywood;

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

.menu {
 width: 80%;
 background-color: burlywood;
 margin-left: auto;
 margin-right: auto;
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.174 YaBrowser/ Yowser/2.5 Safari/537.36

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

Link to the challenge:

Help, welcome to the forum!
We see your code but no question?

Hello. I’m sorry. The question is that I don’t understand where is the error in my code?
The task is

Step 27

So far you have been using type selectors to style elements. A class selector is defined by a name with a dot directly in front of it, like this:

.class-name {

Change the existing div selector into a class selector by replacing div with a class named menu.

so… what is wrong with my code?

the change is correct.
I suggest you restart the step to see if it will pass you if you reload the page (use CTRL-F5 to force a refresh after)
You can also try incognito/private mode in your browser for this step to see if passes.
Finally if none of these work, try to use another browser (or disable browser extensions)

I tried “CTRL-F5” and it worked!!! Thank you!

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