티스토리 뷰
when width is 100, pending and border thickness is add to original width. so make it wider.
In the default box model, box dimensions are affected by border thickness and padding.
box-sizing will automatically adjust size. e.g. box-sizing: border-box;
The box-sizing property controls the box model used by the browser.
with any setting, it will keep the content's box size
The default value of the box-sizing property is content-box.
border-box will keep the entire boxes' size
The value for the new box model is border-box.
its only for content size, not border
The border-box model is not affected by border thickness or padding.
In the default box model, box dimensions are affected by border thickness and padding.
box-sizing will automatically adjust size. e.g. box-sizing: border-box;
The box-sizing property controls the box model used by the browser.
with any setting, it will keep the content's box size
The default value of the box-sizing property is content-box.
border-box will keep the entire boxes' size
The value for the new box model is border-box.
its only for content size, not border
The border-box model is not affected by border thickness or padding.
'AU Study > TAFE' 카테고리의 다른 글
css layout (0) | 2017.08.23 |
---|---|
w5 tue morning (0) | 2017.08.23 |
css box model (0) | 2017.08.23 |
CSS borders (0) | 2017.08.17 |
W4 Fri afternoon (0) | 2017.08.17 |
댓글