Skip to content

Commit

Permalink
Add DC material
Browse files Browse the repository at this point in the history
Adds material to Box Model notes section
Addresses ga-wdi-boston#19
  • Loading branch information
Toni Langley committed Mar 22, 2017
1 parent 13075b5 commit b12de5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contents of that element (which includes `height` and `width`!)
Together, these attributes form _the box model_, a way of describing the space
taken up by an element.

_Note: an element's size is determined by its content's height and width.Border, margin, and padding add to that size._
_Note: The Box Model explains how CSS `width` is Calculated. By default, how wide an element is on the page is a combination of `width` + `padding` + `border` and the rendered `height` = `height` + `padding` + `border`. This can be problematic when trying to create a layout or position things logically on the page._
_To calculate those into the element's size, the element's CSS [`box-sizing`](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing) property should be changed from the default `content-box` to `border-box.`_
![Box Model](https://mdn.mozillademos.org/files/8685/boxmodel-3.png)

Expand Down

0 comments on commit b12de5e

Please sign in to comment.