Comma not working? basic css 52

Hello friends!

I found so many people asking this question who were simply missing the comma. But I added the comma from the start and it’s still saying I need to add dessert selector to flavor selector. It’s gotta be something simple, just different then other people’s simple lol.

body {
  background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
}

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

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}

.item p {
 display: inline-block;
.dessert, .flavor {
  text-align: left;
  width: 75%;
}

I’ve also tried…

body {
  background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
}

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

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}

.item p {
 display: inline-block;
.flavor, .dessert {
  text-align: left;
  width: 75%;
}

…just in case it’s being picky

Thank you for any help you can provide

-M

Please post a link to the Step. Thanks

You cannot start a new CSS rule inside of another one.

Ohhhh. Somehow I deleted the

}

Thank you @JeremyLT ++

-M

1 Like

Missing the closing } before the .flavor starts

Still missing the } before the net class starts. flavor class should be first

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