Use Clockwise Notation to Specify the Padding of an Element

Use Clockwise Notation to Specify the Padding of an Element
0.0 0

#1

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:


#2

What does the failing test(s) say?


#3

Remember when using the padding property, the order is:

padding: top, right, bottom, left;

You have the order of of them mixed up.


#4

error resolved. this helped.

Thank you.