Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <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"/>
</head>
<body>
  <div>
    <header>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </header>
    <main>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </div>
</body>
</html>
/* file: styles.css */
body
div width
{
width: 300px;
} 
{
background-color: burlywood;
}

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

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

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

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

My question is how do I follow the instructions given :slight_smile: every time I think I have a div selector type it tells me I need to add one, I tried looking at another site as well Type selectors - CSS: Cascading Style Sheets | MDN, I realize I forgot to add to this but it was 2am and I was fried, also I’m extremely new learned html last week, and css this week hopefully! I’m not entirely sure I have the width set right I’m guessing and checking :slight_smile:

1 Like

Also I’m not sure how to edit this forum

aha I figured out how to reply! I found someone to help just so you don’t think I gave up or anything! :slight_smile:

I’m trying to delete it now!

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