[CSS] box-sizing

낙서·2021년 9월 4일

box-sizing은 element의 width와 height을 결정하는 속성

CSS Box Model

  • box-sizing: content-box;
    width와 height는 css box model 에서 content 크기

  • box-sizing: border-box;
    width와 height는 css box model 에서 content, padding, border를 포함

profile
Deprecated

0개의 댓글