Learn CSS Colors by Building a Set of Colored Markers - Step 48

Hello. I need help with the code here. Would someone be able to help?

Your code so far

/* file: index.Ext.html */
h1 {
  text-align: center;
}

.container {
  background-color: rgb(255, 255, 255);
  padding: 10px 0;
}

.marker {
  width: 200px;
  height: 25px;
  margin: 10px auto;
}

.red {
  background-color: rgb(255, 0, 0);
}

.green {
  background-color: #007F00;
}

.blue {
  background-color: rgb(240, 100%, 50%);
}

/* file: styles.Ext.css */
h1 {
  text-align: center;
}

.container {
  background-color: rgb(255, 255, 255);
  padding: 10px 0;
}

.marker {
  width: 200px;
  height: 25px;
  margin: 10px auto;
}

.red {
  background-color: rgb(255, 0, 0);
}

.green {
  background-color: #007F00;
}

.blue {
  background-color: rgb(240, 100%, 50%);
}

Your mobile information:

iPhone - iOS16.6

Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 48

Link to the challenge:

Please show and talk about the code you tried.

In the .blue CSS rule, use the hsl function to change the background-color property to pure blue. Set the hue to 240, the saturation to 100%, and the lightness to 50%.

I don’t see a hsl function?

2 Likes

Oh! I’m so blind! Thanks man.