Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:
Why am I failing the test, although it is centering the h1 element like asked, the result is continously:
Sorry, your code does not pass. You’re getting there.


You should have an h1 selector in your style element.

Your code so far

    <meta charset="utf-8" />
    <title>Cafe Menu</title>

<!-- User Editable Region -->

        text-align: center;

<!-- User Editable Region -->


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 11

Link to the challenge:

Well, for whatever reason, writing the same code on safari, got a passed test!! So I will keep up changing brwosers whenever I encounter such problems. Thank dear me for the help :smile:

1 Like

Hey, it was just a simple syntax error. There should be space between your h1 selector and “{”

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