I'm stuck on Step 61 of CSS by building a cafe menu

.menu h2{
font-style: italic;

This answer seems right to me as it makes the Est. 2020 text italic but the answer says I should be using an established selector. Link[link to problem](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-basic-css-by-building-a-cafe-menu/step-61) Thank you.

You gave it a class selector of .menu and also applied it to the h2 element. This part is incorrect.

The lesson states “Make the Est. 2020 text italicized by creating an established class selector and giving it the font-style property with the value italic .”

To do this you need to create a new CSS block with the class selector of established. Other than this detail the way you displayed the property and value are correct.


Thank you so much for your help!

1 Like

Putting a space after the( .) would work. Like this Est. 2020

You just need to create a class=“established” in the EST P tag and then now solve it in the CSS with the .established.


How do I create the newCSSblock pls

    <p class="established">Est. 2020</p>

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