Learn Basic CSS by Building a Cafe Menu - Step 12

excuse me, someone know, please tell me how to Center the h2 and p

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

ye, sure. but ], when i test the code, the return is not pass, the message is " You should not add a new style tag. Add the new CSS rules to the existing style tag." my code is like this`
h1 {
text-align: center;
}
h2 {
text-align: center;
}
p {
text-align: center;
}

</style>`

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

1 Like

sure, thank you. i was so happy. it resolve me.

1 Like

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