Learn Basic CSS by Building a Cafe Menu - Step 13

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

add the same group of styles to many elements by creating a list of selectors. Each selector is separated with commas like this:

selector1, selector2 {
  property: value;
}

How do I define the selector please?

h1, h2, p, {text-aligh: center} }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0

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

Link to the challenge:

Hi there and welcome to our community!

There are a few things to note here:

  1. You should not have a comma after the final selector.
  2. You have mistyped text-align (and it is usual to include a semi-colon after the property value).
  3. You have two closing curly braces when you should have only one.

If you fix these issues, your code will pass.

Also, it’s important to develop good formatting habits, as it makes code much easier to read and to debug. The example given in the instructions shows how a properly formatted selector and property/value pair should look. The principles of good formatting apply whether you’re writing HTML, CSS or any other language.

yes sorry, this is after frustration of trying for hours, can you answer the question

it was just the coma, I tried this many times, thanks for the help

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