The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area.
border-box. CSS border-box is the most popular choice for setting box-sizing. It guarantees that the content box shrinks to make space for the padding and borders. Therefore, if you set your element width to 200 pixels, border-box makes sure that the content, padding, and borders fit in this number. In this example, box-sizing: border-box; is
content-box gives you the default CSS box-sizing behavior. If you set an element's width to 100 pixels, then the element's content box will be 100 pixels wide, and the width of any border or padding will be added to the final rendered width, making the element wider than 100px. border-box tells the browser to account for any border and padding
Note that we have set the box-sizing property to border-box. This makes sure that the padding and eventually borders are included in the total width and height of the elements. Read more about the box-sizing property in our CSS Box Sizing chapter.
The alternative to the content-box value for the box-sizing property is border-box. Instead of adding padding and border properties to the declared width and height values to get the computed value, it subtracts the values. This means that the width of a box with a border-box box model is the width property minus the sum of the left and right
The illustration below demonstrates the border-box value and how the IHTMLCSSStyleDeclaration::padding and IHTMLCSSStyleDeclaration::border are included in the content box. As of Internet Explorer for Windows Phone 8.1 Update, Internet Explorer for Windows Phone supports "-webkit-box-sizing" as an alias for this property.
2. I would suggest to use box-sixing:border-box; because it's not affecting the content of the element in connection to a usual CSS border. An inset-shadow might overlap the contents. In addition to that there's a better browser support for box-sizing:border-box like Mathias commented. Share.
If you want your final element to stretch to the edge of the container, you'll want to only apply the margin-right to the first two elements. The best way to do this would be to combine the :not and :last-of-type pseudo-classes, as can be seen in the following: input { background-color: darkgreen; border: none; color: white
Vay Tiền Cấp Tốc Online Cmnd.