Help me please im stuck on a simple one

Help me please im stuck on a simple one
0

#1

Tell us what’s happening:

it says to add the margin i do but nothing happens.its probably a silly mistake but please help…

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: 10px;
  }
  
  .red-box {
    background-color: red;
    margin-top: 40px;
    margin-right: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
  }

  .green-box {
    background-color: green;
    margin-top 40px;
    margin-right 20px;
    margin-bottom 20px;
    margin-left 40px;
  }
</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 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

Link to the challenge:


#2

What exactly does the failing test say?


#3

Your green-box class should give the top of elements 40px of margin.
Your green-box class should give the left of elements 40px of margin.
Your green-box class should give the right of elements 20px of margin.
Your green-box class should give the bottom of elements 20px of margin.


#4

All of your green-box margin lines are missing a :


#5

il try but where do i add that im very new to this sorry to seem stupid


#6

Look at all of the other lines in class definitions. See how yours are different?


#7

margin-top is a property and 40px is a value.

To assign a value to a selector property, you must put a colon between the property and the value.

 property: value;

#8

i got it thanks .i feel silly for missing that . you rock