Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.
Tu elemento body
debe tener un color de fondo blanco me aparece siempre este error
Tu código hasta el momento
/* file: styles.css */
body {
/* User Editable Region */
/background-color: burlywood;/
background-color: white;
/* User Editable Region */
}
h1, h2, p {
text-align: center;
}
div {
width: 300px;
}
<!-- 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 {
/* User Editable Region */
/*background-color: burlywood;*/
background-color: white;
/* User Editable Region */
}
h1, h2, p {
text-align: center;
}
div {
width: 300px;
}
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/108.0.0.0 Safari/537.36
Desafío: Aprende CSS básico construyendo un menú de cafetería - Paso 22
Enlaza al desafío:
Simplemente debes comentar background-color: burlywood;
y has hecho precisamente eso. No es necesario agregar propiedades adicionales
Ok vale gracias. Pero igualmente me sigue apareciendo el mismo error.
Tu elemento body debe tener un color de fondo blanco.
Remove this:
background-color: white;
This is because,
you added background of white which you were not asked to
Luego publique su código html hasta ahora
body {
/background-color: burlywood;/
}
Tu elemento body
debe tener un color de fondo blanco.
h1, h2, p {
text-align: center;
}
div {
width: 300px;
}
Esto no debería ser parte de su html
PASO 22
Los comentarios en CSS se ven así:
/* comment here */
En tu hoja de estilos, convierte a un comentario la línea con el valor y la propiedad background-color
, así podrás ver el efecto de solo darle estilo al elemento div
. Esto hará que el fondo vuelva a ser blanco.
RESPUESTA: /background-color: burlywood;/
Prueba
Lo sentimos, tu código no pasa. Continúa intentándolo.
Sugerencia
Tu elemento body
debe tener un color de fondo blanco.
parte html
Cafe Menu
CAMPER CAFE
Est. 2020
Coffee
CSS
body {
/*background-color: burlywood;*/
}
h1, h2, p {
text-align: center;
}
div {
width: 300px;
}
body { /*background-color: burlywood;*/ }
h1, h2, p {
text-align: center;
}
div {
width: 300px;
}
This should work
Intente volver a cargar la página y vuelva a hacerlo o use un navegador diferente
1 Like
Muchas gracias. Me funciono probar con otro navegador