Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
box
.content-box {
width:200px;
height: 200px;
box-sizing: content-box;
padding: 10px;
border: 10px solid #f46;
margin: 10px;
}
.border-box {
width:200px;
height: 200px;
box-sizing: border-box;
padding: 10px;
border: 10px solid #f46;
margin: 10px;
}
@Yang03

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2018

image
image
content = 200
box(240) = 200(content) + padding(20) + border(20)
image
image
box(200) = content(160) + padding(20) + border(20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.