Learn Basic CSS by Building a Cafe Menu - Step 22

I am not understanding what I need to do

The goal now is to make the div not take up the entire width of the page. The CSS width property is perfect for this. Create a new type selector in the style sheet that gives your div element a width of 300px .

My code:
body {
{div
background-color: burlywood;
width: 300px;
}
}

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

It isnt passing, what am i doing wrong?

the div selector should be outside of the body selector.

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