Last Updated: February 25, 2016
·
1.617K
· armst

How to make the CSS box model respect your padding AND your width

.box {
  width: 200px;
  padding: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}