Use Clockwise Notation to Specify the Padding of an Element

Tell us what’s happening:
Please what is expected of me in this code
i’ve added padding clockwise to .green-box style.

Your code so far

<style>
  .injected-text {
    margin-bottom: -25px;
    text-align: center;
  }

  .box {
    border-style: solid;
    border-color: black;
    border-width: 5px;
    text-align: center;
  }

  .yellow-box {
    background-color: yellow;
    padding: 20px 40px 20px 40px;
  }
  
  .red-box {
    background-color: red;
    padding: 20px 40px 20px 40px;
  }

  .green-box {
    background-color: green;
    padding: 40px 20px 40px 20px;
  }
  
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
  <h5 class="box red-box">padding</h5>
  <h5 class="box green-box">padding</h5>
</div>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0.

Link to the challenge:
https://www.freecodecamp.org/challenges/use-clockwise-notation-to-specify-the-padding-of-an-element

What does the failing test(s) say?

Remember when using the padding property, the order is:

padding: top, right, bottom, left;

You have the order of of them mixed up.

1 Like

error resolved. this helped.

Thank you.