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

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

Tu código hasta el momento

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div>
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  /*
  background-color: burlywood;
  */
}

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

.menu {
  menu: 
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

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

Enlaza al desafío:

hello I dont have idea whats next to do, where I add the div class?

1 Like

Hola @arteezy.d

Es un desafío relativamente sencillo, pero tienes que entender qué es el atributo class.
Puedes mirar aquí, por ejemplo: El atributo class

Algunos desafíos son muy simples y estarás tentado a ir rápido, no es una buena idea cuando empiezas. Es mejor pararse y leer todo el código y consultar otras fuentes para realmente entenderlo.

Buen trabajo, sigue así!!

And in english, you have posted your question in the spanish forum, tough:

Hi @arteezy.d

It’s a relatively simple challenge, but you have to understand what the class attribute is.
You can look here, for example: The class attribute

Some challenges are very simple and you will be tempted to go fast, not a good idea when you start. It’s better to stop and read all the code and consult other sources to really understand it.

Good job, keep up the good work!

1 Like