Skip to content

Commit

Permalink
css border box init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
afk16105 committed Apr 16, 2019
1 parent 2bed6aa commit d524e1a
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 d524e1a

Please sign in to comment.