Pls i need a help how can i get out of this stage

Tell us what’s happening:

  **Your code so far**

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

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

.yellow-box {
  background-color: yellow;
  padding: 10px;
}

.red-box {
  background-color: crimson;
  color: #fff;
  padding-top: 40px;
  padding-right: 20px;
  padding-bottom: -15px;
  padding-left: 40px;
}

.blue-box {
  background-color: blue;
  color: #fff;
}
</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/89.0.4389.114 Safari/537.36.

Challenge: Add a Negative Margin to an Element

Link to the challenge:

Hello @shengeelijah5, welcome to the forum.

The challenge asks you to modify the margin value of the blue box.

This is what the code looks like at the beginning of the lesson:

  .blue-box {
    background-color: blue;
    color: #fff;
    padding: 20px;
    margin: 20px;
  }

And this is what you’ve pasted:

.blue-box {
  background-color: blue;
  color: #fff;
}

I see you have removed the padding and margin; is there a reason for that?
The challenge simply asks you to try to give margin a negative value and see what happens. :slight_smile:

been new in this system is not easy for me to followed. pls what step i can take to get out of this.

use the Reset Code button to bring the challenge back to its starting state, then follow again the instructions

Thanks i am very grateful

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.