box-sizing

pepe·2025년 11월 20일
box-sizing: border-box

width+@로 계산되는게 아니라
width에 border px이 함께 계산됨

border 10, width 200이면,
width 200에 border 양옆 10이 포함되어 180+20이 된다.

profile
pepe

0개의 댓글