Learn Basic CSS by Building a Cafe Menu - Step 13

Tell us what’s happening:
already tried looking for help solution, those posts are so confusing i looked 4 of them before this…

Your code so far

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

<!-- User Editable Region -->

    <style>
      h1 selector 1, {
        text-align: center;
      }
      h2 selector 2,{
        text-align: center;
      }
      p selector 3,{
        text-align: center;
      }
    </style>

<!-- User Editable Region -->

  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your browser information:

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

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

Link to the challenge:

 <style>
      h1 1, {
        text-align: center;
      }
      h2 2,{
        text-align: center;
      }
      p 3,{
        text-align: center;
      }
    </style>
      h1  {
        text-align: center;
      }
      h2  {
        text-align: center;
      }
      p   {
        text-align: center;
      }
    </style>
type or paste code here

Hello there @jlove5789 , it would help if you could tell what the problem is and that way you could receive accurate assistance.

i did say what the issue is I am stuck again. So in turn i would like to recieve assistance for this step in making the menu for freecodecamp challenge that I am currently on today right now on this day July 26th, 2023 at 0945hrs(Central time in the USA) Thanks in advance for any assistance or direction that involves getting this step completed during my time trying to solve the current challenge of the Coffee Menu code writing.

style>
      h1 {
        text-align: center;
      } selector 1,
      h2 {
        text-align: center;
      } selector 2,
      p  {
        text-align: center;
      }selector 3,
    </style>

The first part of the directions say

Delete the three existing type selectors

Meaning you need to delete all of this

 h1  {
        text-align: center;
      }
      h2  {
        text-align: center;
      }
      p   {
        text-align: center;
      }

After you delete all of that. Follow the example the challenge gives you

selector1, selector2 {
  property: value;
}

Here what you are going to do is place the h1, h2, and p element all on the same line, and separate them by commas like the example shows. Then just fill in the property and value parts

  <style>
 
    </style>

Deleted it all

<style>
      center h1,h2,p center
    </style>

Good, now follow the example

selector1, selector2 {
property: value;
}

You are not going to actually use the word selector1 and selector2, and same as the last challenge you are not using the actual words property and value. In the place of the selector words you are going to add the h1, h2, and p separated by commas like the example shows. Then like last time just replace the property and value with what they need to be. Remember the property was text-align and value was center

<style>
      slector1{
        text-align: center;
      }
      h2 {
        text-align: center;
      }
      p {
        text-align: center;
      }selector1
    </style>
``` what am i not getting? I delete it al then its says no, no matter what i do. I am reseting again thatll be 23 now for this
 <style>
      selector
      h1{
        text-align: center;
      }
      h2 {
        text-align: center;
      }
      p {
        text-align: center;
      }
      selector
    </style>

You should not have three lines anymore. It needs to be all one line, and this example has to be followed

selector1, selector2 {
  property: value;
}

remove the words selectors and thats where the h1, h2, and p go separated by commas
Then replace the words property and value with the actual property and value

1 Like

ok so I have reset and then deleted all that like you said

why is the wording so difficult? I got it finally.

1 Like

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