Impara le variabili CSS costruendo lo skyline di una città - Step 12

Dicci cosa sta succedendo
Descrivi qui il tuo problema in dettaglio.

Good morning guys the following code asks me to solve the following problem in this way:
You should use a class selector for the style of .bb1d .
I did as you said but it reports me the error again,what would be the problem according to you?

Il tuo codice fino ad ora

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">    
  <head>
    <meta charset="UTF-8">
    <title>City Skyline</title>
    <link href="styles.css" rel="stylesheet" />   
  </head>

  <body>
    <div class="background-buildings">
      <div class="bb1">
        <div class="bb1a"></div>
        <div class="bb1b"></div>
        <div class="bb1c"></div>
        <div class="bb1d"></div>
      </div>
    </div>
  </body>
</html>
/* file: styles.css */
* {
  border: 1px solid black;
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.background-buildings {
  width: 100%;
  height: 100%;
}

.bb1 {
  width: 10%;
  height: 70%;
}

/* User Editable Region */

.bb1a {
  width: 70%;
  height: 10%;
  }

.bb1b {
  width: 80%;
  height: 10%;

}

.bb1c {
  width: 90%;
  height: 10%;
{

.bb1d {
  width: 100%;
  height: 70%;
{

/* User Editable Region */


Informazioni del tuo browser:

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.64

Sfida: Impara le variabili CSS costruendo lo skyline di una città - Step 12

Link alla sfida:

Ciao, l’errore sta nel non aver chiuso la variabile, hai inserito per errore { piuttosto che }

1 Like