Margin to right bottom left


margin: top 20px;
margin: right 50px;
margin: bottom 10px;
margin: left 5px;
* {
border: 1px dashed black;

div {
height: 50px;
width: 100px;
border: 2px solid black;
border-radius: 5px;
background-color: #308014;

Replace this line with your code.


Targeting a specific margin (right, left ect)

must be done like this example: margin-right: 30px
Same syntax for top, left, bottom :slight_smile:

also you shouldn't target the element again (create another div) add it to existing div

*Remember same rule applies to padding


should be
margin-top, margin-right, margin-bottom and margin-left respectively.