Skip to content

Instantly share code, notes, and snippets.

@dimaanj
Created December 25, 2024 08:50
Show Gist options
  • Save dimaanj/48cf56fa4265d695a7259415ce5bf08f to your computer and use it in GitHub Desktop.
Save dimaanj/48cf56fa4265d695a7259415ce5bf08f to your computer and use it in GitHub Desktop.
Box model
<div class="box"></div>
<div class="border-box"></div>
.box {
/* box-sizing: content-box; */
width: 350px;
height: 150px;
margin: 10px;
padding: 25px;
border: 5px solid black;
}
.border-box {
box-sizing: border-box;
width: 350px;
height: 150px;
margin: 10px;
padding: 25px;
border: 5px solid black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment