Tell us what’s happening:
Why when I set the value to margin minus something of the injected text green box and then the yellow box div soak up the the injected text green box and the background turns yellow
The same thing happen if I use a ID for set the background color and me sure that the background will be the same (because it¡s more important) but idk why the same thing is happen even with the ID
Your code so far
<style>
.injected-text {
margin-bottom: 0px;
text-align: center;
background-color: green;
}
.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: 20px;
margin: 20px;
}
.blue-box {
background-color: blue;
color: #fff;
padding: 20px;
margin: 10px;
}
</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 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36.
Challenge: Adjust the Margin of an Element
Link to the challenge:


