Learn Basic CSS by Building a Cafe Menu - Step 26

Tell us what’s happening:
Describe your issue in detail here. margin-left had been set to auto and won’t work still

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 {
  /*
  background-color: burlywood;
  */
}

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

div {
  auto: auto;
  width: 80%;
  background-color: burlywood;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15

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

Link to the challenge:

I cannot detect your code changes.
Can you paste them in response here?

div {
auto: auto;
width: 80%;
background-color: burlywood;
}

I do see a mistake regarding your div in css. Auto auto is not a coorect format.

Hmm the code doesn’t have the two styles that the exercise asked for. Here are the instructions again:

center the div horizontally. You can do this by setting its margin-left and margin-right properties to auto

Notice the words margin-left and margin-right? You need two different lines for each one of these properties. (And their value is auto)

div {(auto:auto;)
width: 80%;
background-color: burlywood;
}

The purpose of this step is to modify the margin property. Not the “auto” property which does not exist.

Width is a property. 80% is a value. background-color is a property , and burlywood is a value. margin-left is a property and auto is a value. margin-right is a property and auto is the value.

much appreciated
got it