Aprende CSS básico construyendo un menú de cafetería - Step 12

Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.

Step 12

In the previous step, you used a type selector to style the h1 element. Center the h2 and p elements by adding a new type selector for each one to the existing style element.

este es el mandato, creo haberlo hecho bien pero no avanza y estoy estancado, ayuda por favor.

Tu código hasta el momento

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
        h1{text-align: center;}
        h2{text-align:center;}
        p{text-align:center;}
    </style>
    

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

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

Desafío: Aprende CSS básico construyendo un menú de cafetería - Step 12

Enlaza al desafío:

Hey Ray, maybe if you add a space see if that would work from “: center”

I tried and did not work.

it shows this error msn
You should not add a new style tag. Add the new CSS rules to the existing style tag.

¡Hola!

En teoría, no debería marcarte error. Lo puse tal y como lo hiciste en tu código y si me permitió seguir. ¿Has intentado reiniciar el paso e intentar escribir de nuevo el código?

Igual y fue un error temporal.

Tratare de hacer eso, reiniciare porque ya llevo horas intentando todo, te dejo saber que tal

El otro día había uno que no le iba por tener plug-ins que afectaban el desafío. Logró superarlo cuando los desactivo. Prueba de hacer eso si es tu caso. El código que escribes es correcto.

cambie de navegador y todo funciono perfecto, al parecer safari me estaba complicando. Gracias a todos por su ayuda.

3 Likes