Learn Basic CSS by Building a Cafe Menu - Step 21

Tell us what’s happening:
I am not sure what to do I am confused on how to do this code for step 21.

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 */

/* User Editable Region */

<div body {
  background-color: burlywood;
h1, h2, p {
  text-align: center;
  width: 300px;

/* 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 21

Link to the challenge:

You are trying to use html in your css file, but thats not valid. The directions say

" Create a new type selector in the style sheet that gives your div element a width of 300px ."

So you need to create a div selector, and give that selector a style for width of 300px. Do you remember how to make a element selector in css?

I didnt but I just figured it out. Thanks

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