Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:

Describe your issue in detail here.
I am stuck in this step, not knowing how to comment the line

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 id="menu">
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
/* file: styles.css */
body {

/* User Editable Region */

  background-color: burlywood;

/* User Editable Region */

/* comment*/
h1, h2, p {
  text-align: center;

#menu {
  width: 300px;

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 Information:

Learn Basic CSS by Building a Cafe Menu - Step 22

You have to comment the actual line of code out. Example:

div {
   background-color: blue;
   /* background-color: red; */

In this example, the div element will have a background color of blue because the other line, which would change the color to red, is commented out and won’t be interpreted as code by the computer.

1 Like

Can you articulate what’s not making sense?


I am trying it again. Thanks to you, @shy_away and to you, @anon42932716 . That thing just dragged my speed down but I am working on it now.


You’re requested to comment out the background styling. This simply means you should make the background-color and it’s value a comment like this:
Mod edit: removed

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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