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

What I’m doing wrong? :sweat_smile:

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Markers</title>
    <link rel="stylesheet" href="styles.css">
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker one">
      <div class="marker two">
      <div class="marker three">
/* file: styles.css */
h1 {
  text-align: center;

/* User Editable Region */

.container {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px 0;
  padding-right: 10px 0;
  background-color: rgb(0, 0, 0);

/* User Editable Region */

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

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

.two {
  background-color: rgb(0, 127, 0);

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

Each one of these properties only wants one value.

Unlike the shorthand property for padding which can take 1-4 values.

if i enter: padding-left: 0px; → I receive this hint: Your .container CSS rule should have a padding property set to 10px 0 .

So that tells me that you should use the padding property. Not the padding-left -right -top -bottom properties.

the same, if I delete both padding, left and right, and I put paddin: 10px 0;, I recieve the same hint. :upside_down_face:

You have to delete all the paddings. You had 4 lines before.

i’ve done it again, and it works :sweat_smile: thank you :laughing:

1 Like