CSS (Building a Cafe Menu) Step 44

I’m stuck at step 44 of the first CSS module in the “Responsive Web Design” program:

"Step 44

To complete the styling, add the applicable class names flavor and price to all the remaining p elements."

I’ve typed this in response, but the program keeps saying it’s wrong:

Pumpkin Spice

3.50

Caramel Macchiato

3.75

Pumpkin Spice

3.50

Hazelnut

4.00

Mocha

4.50

Hi, you need to add the “price” class in each “p” element that contains the price, and the “flavor” class in each “p” element that contains the flavor, and it works:

Mod edit: removed code

I tried that and it didn’t accept that answer either. I originally added the “flavor” class to each p item for the flavor listings and the “price” class to each price, but it came back as incorrect when I submitted it to move forward. I double checked my spelling of each new class element for all 10 p elements and it’s not letting me advance.

Please delete all the code and copy and paste this one, to see if it works:

Mod edit: removed solution

I accidentally doubled the “Pumpkin Spice” item in my code- not sure how, but I caught it on my last review. I took it out and it went through just fine. Thanks to everyone who commented, I appreciate your willingness to help!

1 Like

Anyway this is just to see that it works properly. But the best thing is that you find where you have the error. Probably some class is not well written, or you deleted something by mistake.

Please do not provide code to pass the challenges. I have removed the code from your post. You can provide hints, and point them in the right direction but it is up to them to come up with the code

Thanks

1 Like

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