Learn Basic CSS by Building a Cafe Menu - Step 21

Its me again! I need help lol…
I’ve tried everything I could think of

<!-- 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;
div {
  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:

Use the #menu selector to give your element a width of 300px .

I don’t see a #menu selector in your CSS file.

1 Like


This one is tricky because the example

#example-id {
  width: 250px;

Only use the #menu selector.

Do not include the - id part in this selector. It is only used to show where the id selector should go, I believe.


property: value;

I hope this helps you.

Keep up the good progress!

1 Like

Thanks . I did that and it worked!!.
But I’ve got a question?
In what situation am i meant to use the div

1 Like

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