Learn Basic CSS by Building a Cafe Menu - Step 25

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

Your code so far

/* file: index.Ext.html */
body {margin-left: auto;}
  /*
  background-color: burlywood;
  */
} 

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

#menu {
  width: 80%;
  background-color: burlywood;
}

/* file: styles.Ext.css */
body {margin-left: auto;}
  /*
  background-color: burlywood;
  */
} 

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

#menu {
  width: 80%;
  background-color: burlywood;
}

Your mobile information:

Infinix X6517 - Android 12 - Android SDK 31

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

Link to the challenge:

You want to center #menu element, not the body. Put both margins in the #menu rule

1 Like

The code snippet you provided contains some errors and formatting issues.
Uso de color “burlywood”:
“burlywood” es un valor de color válido en CSS, pero debes asegurarte de que sea lo que realmente deseas.
In the comment inside the second rule (/* background-color: burlywood; */), you have commented out the background-color property. If you want to keep that property disabled, it is preferable to comment out the entire line rather than just the property.

1 Like

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