Skip to content

Commit

Permalink
Merge pull request #10 from bpd01001/css-border-box
Browse files Browse the repository at this point in the history
css border box
  • Loading branch information
bpd01001 authored Apr 16, 2019
2 parents e989d24 + d524e1a commit 6a2bb57
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 03 - CSS/css-border-box.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h1>What does this CSS propoerty do?</h1>

* {
box-sizing: border-box;
}

Essentially, this property makes its so that the padding and border of an HTML element are included in the width and height. For example, if two divs have the same width defined in the CSS, the border-box property would make it so they are both the same width even if they have different sized borders/padding.

The example above applies it to everything in the HTML.

0 comments on commit 6a2bb57

Please sign in to comment.