Learn Basic CSS by Building a Cafe Menu - Step 26

Tell us what’s happening:
Describe your issue in detail here.
Good morning lovely encouragers.
I remain Vincent from portharcourt, Nigeria.
What’s making this code not working.
It asks me to replace div with .menu in order to change the dive selector to a class selector but after doing same as you can see below it’s not passing
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;

/* User Editable Region */

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

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; TECNO KD7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

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

Link to the challenge:

You have deleted the closing curly brace from the previous selector }

Howdy! Thanks for posting your question on the forum.
I want to point out to the thing @DobarBREND said.
Your code in the User Editable Region is correct, but a piece of code outside it in incorrect.

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

This is the part of your code that’s incorrect. As you can see, you haven’t ended your previous CSS rule, which is causing your current one to not work.

selector {
 property: value;

As you can see, you haven’t added a brace (}), at the end of your rule, just do that for the selector I showed you, and you should be good to go.
(If you have, please don’t edit code beyond the User Editable Region, which is the place to code things related to the challenge)

Hope this helped!

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