Design a Set of Colored Boxes - Design a Set of Colored Boxes

Tell us what’s happening:

My 1, 5, and 10 is not working. I have try several things but it’s not working

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="stles.css">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Boxes</title>
</head>
<body>
    <h1>Colored Boxes</h1>
<div class="color-grid">
    <div class="color-box color1"></div>
  <div class="color-box color2"></div>
  <div class="color-box color3"></div>
  <div class="color-box color4"></div>
  <div class="color-box color5"></div>
</div>
</body>
</html>
/* file: styles.css */
body {
  background-color: #f4f4f4;
  text-align: center;
}
.color-box {
  width: 300px;
  height: 600px;
}
.color1 {
  background-color: #FF33BB;
}
.color2 {
 background-color: rgb(255,0,0);
}
.color3 {
  background-color: blue;
}
.color4 {
  background-color: hsl(87, 20%, 30%);
}
.color5{
  background-color: red;
}

Your browser information:

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

Challenge Information:

Design a Set of Colored Boxes - Design a Set of Colored Boxes
https://www.freecodecamp.org/learn/full-stack-developer/lab-colored-boxes/set-of-colored-boxes

I’m not sure that your CSS is being applied to your HTML elements. Check that you have linked the CSS file correctly.

1 Like

I have seen my mistake , thank you

1 Like

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