Basic CSS: Use Clockwise Notation to Specify the Margin of an Element

Tell us what’s happening:
i have all the checks but this is my error

You should use the clockwise notation to set the margin of blue-box class.
can someone help me out

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: crimson;
  color: #fff;
  margin: 20px 40px 20px 40px;
}

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

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

</div>

Your browser information:

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

Challenge: Use Clockwise Notation to Specify the Margin of an Element

Link to the challenge:

The clockwise notation in css is when it combines 3-4 different type of the same attribute into one line. ex:
Normal CSS

element {
  padding-top: 5px;
  padding-right: 10px;
  padding-bottom: 15px;
  padding-left: 20px;
}

clockwise notation

element {
  padding: 10px 15px 20px 25px;
}

the challenge is to make the margin into clockwise notation. Here’s a hint of the clockwise notation for margins and padding

margin: top right bottom left;
1 Like

are you sure you have all the pieces? the last 40 seems to be a pure number instead of the number of pixels

2 Likes