Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

Describe your issue in detail here.
Completely lost here, someone help, please. It’s telling me to " Center your h1 element by setting its text-align property to the value center ."

Your code so far

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <title>Cafe Menu</title>

<!-- User Editable Region -->


<!-- User Editable Region -->

      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

You can write CSS code directly in an HTML document by putting it inside the style element.

The syntax for a CSS rule is given in the challenge instructions:

element {
 property: value;

You have a selector (element above), which targets the required element(s). The CSS rules, which are inside the pair of curly braces, will be applied to the selected element(s). They take the form of property/value pairs, and you can have as many as you need inside each ruleset.

In this case your selector is h1 and you have one CSS rule with the property text-align and value center. Replace the corresponding words in the above code with these values and you should find that the text content of your h1 element will be centered on the screen.

1 Like

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