-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bpd01001/css-border-box
css border box
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |