Learn Basic CSS by Building a Cafe Menu Lesson 73

Hello Everyone,
Hoping y’all might be able to help. I’m not sure what I missing. Task is to set margin top and bottom of the .item to 5px.
so I am putting in CSS:
.item {
margin-top: 5px;
margin-bottom: 5px;
and I keep getting "Your p elements nested in your .item elements should have a margin-top of 5px . What I am I missing? I’ve tried it in two different browsers also. Thanks!

1 Like

“Target all the p elements nested in elements with the class named item

I think you have already created a ruleset that targets these p elements in a previous step. Just use that ruleset to add the top and bottom margins.

Yup! That was my oversight. I had forgotten about it being previously added and was trying to add a new one. Thank you very much!

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