margin multiple value order

Solutions on MaxInterview for margin multiple value order by the best coders in the world

showing results for - "margin multiple value order"
Allan
10 Jan 2021
1html, body {
2  width: 100%;
3  margin: 10px; /* for all 4 sides */
4  margin: 10px 15px; /* top/bottom = 10px, sides = 15px */
5  margin: 10px 15px 0px; /* top 10px, sides 15px, bottom 0px */
6  margin: 10px 15px 0px 30px; /* top 10px, right 15px, bottom 0px, left 30px */
7}
8
9/* 
10This is pretty much standard for all box-stuff shorthand,
11such as borders or padding.
12It should be noted that if you use `inherit`, it will only work
13if all 4 values are specified.
14So, you can't do `border-width: inherit 2px;`.
15*/