Learn Basic CSS by Building a Cafe Menu - Step 21

Tell us what’s happening:
Describe your issue in detail here. Ok so i have followed the example in this lesson which is #example-id { width: 250px;}. it wants me to use #menu for the id selector for the div element. I have typed this in in multiple ways and still can not get this to work i am unsure of what I am doing wrong. Maybe i just dont understand what its asking. I have tried #menu-id{ width: 300px;}, #divemenu-id{ width: 300px;} and a few others with no luck. what am i doing wrong 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"/>
    <div id="menu">
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
/* file: styles.css */

/* User Editable Region */

body {
  background-color: burlywood;
#menu-id { 
width: 300px
h1, h2, p {
  text-align: center;

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

Welcome to our community!

You don’t need the extension -id after the #menu selector.

1 Like

Perfect thank you so much. the example is confusing since they add it in there, but tested and worked. thank you again.

1 Like

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