Learn Basic CSS by Building a Cafe Menu - Step 51

Tell us what’s happening:
Describe your issue in detail here.
How can I fix this css

.dessert .flavor{
text-align: left;
width: 75%;
}

Your code so far

/* file: index.Ext.html */
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%;
}

.price {
  text-align: right;
  width: 25%
}
/* file: styles.Ext.css */
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%;
}

.price {
  text-align: right;
  width: 25%
}

Your mobile information:

SM-S901B - Android 14 - Android SDK 34

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

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to FCC forum, only thing you are missing is a , to separate the two classes like this .chocolate, .cake, i hope this helps, i would really appreciate it if you could give a like or a solution tick. Happy coding friend, keep going, slow and steady. :smiley:

2 Likes

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