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

Tell us what’s happening:

Good day, can you please assist me with step 6, I’m failing to figure out what exactly is the problem

Your code so far

<!-- 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>Colored Boxes</title>
    <link rel="stylesheet" href="styles.css"/>
</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;
}
h1 {
  text-align: center;
  margin: auto; 
  padding: auto;
  font-size: 50px;
}
.color-box {
  width: 50px;
  height: 50px; 
}
.color-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
}
.color1 {
background-color: #0000FF;
max-width: 100px;
max-height: 100px;
}
.color2 {
background-color: rgb(0, 255, 0);
}
.color3 {
background-color: red;
}
.color4 {
background-color: hsl(100, 19%, 50%); 
}
.color5 {
  background-color: rgba(165, 42, 42, 0.5)
}

Your browser information:

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

Challenge Information:

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

Sorry I made a mistake I meant to say step 5

Oh, annasage2012, this one is a wee bit naughty, in my opinion :blush:. You should look at the min/max options of the width and height.x

don’t use flex, it makes the tests fail

not if you use the min value and it retains the alignment.x

still Flexbox is two modules forward in the curriculum, these tests are not really written to work with flex

annasage2012, you’re ahead of the game. Well done kid :wink:x

:joy::joy::joy: