9.) Margin IV Original Margin Question

Just a simple question. 1. In style.css, set only the left and right margins of all list items to 20 pixels. Now to do this properly do you keep the margin: 0px 20px; with the new margin-left and margin-right or replace margin with margin-left and margin-right? It passed with all three on there but I wasn’t sure if I should replace the original margin or not…

```

li {
font-weight: 100;
letter-spacing: 2px;
padding: 20px 0px;
text-transform: uppercase;
margin: 0px 20px;
margin-left: 20px;
margin-right: 20px;
}

<do not remove the three backticks above>

margin-left: 20px; and margin-right: 20px; will overwrite margin: 0px 20px;, there is a simple way to test this, by doing something like:

  margin: 0px 20px;
  margin-left: 200px;
  margin-right: 200px;

then you can see the overwrite

1 Like

Ok thanks! Yeah I tested it to see but I probably should have done something large like 200 instead of 25 lol. But yeah I wanted to make sure.