When you have more than one selector

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

i dont know what to do when you have more than one selector

Link to the challenge step would be cool. There are several options when it comes to more than one selector.

Learn Basic CSS by Building a Cafe Menu: Step 52 | freeCodeCamp.org

Got it. First, we need class selectors here.
So we need this type of syntax:

.someclass {

Second, in previous steps you’ve already done some stuff with multiple selectors:
take a look at other parts of your CSS:

this one

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

and this one

.item p {
  display: inline-block;

These two above are examples of multiple selectors.
As you see, difference is a comma.
I suggest you to do research about ‘when we need commas in selectors and when we don’t need them’.

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

am still not getting it

that’s what I am talking about. Its class selector, you need both of your selectors to be class selectors, so what about dessert?)

.flavor .dessert {

i did the above also but it not working

Yep, that because something is missing.

thanks a million. you are a darling :heart:

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