Update css box model (#20412)
Link was no longer working for the image. Found a new image on same website, GitHub is having a small glitch and not loading the image properly.
This commit is contained in:
@ -37,7 +37,7 @@ margin: 5px 1em 0 1em;
|
||||
## Where in box model
|
||||
The margin property in CSS defines the outermost portion of the box model, creating space around an element's content, outside of any defined paddings and/or borders.
|
||||
|
||||

|
||||

|
||||
|
||||
## Collapsing margins
|
||||
Vertical margins on different elements that touch each other (thus have no content, padding, or borders separating them) will collapse, forming a single margin that is equal to the greater of the adjoining margins. This does not happen on horizontal margins (left and right), only vertical (top and bottom).
|
||||
|
Reference in New Issue
Block a user