GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

02Box model comparison — a card that shows whether border and padding count toward its size

Switching between two sizing modes compares, side by side, how the same width value produces a different actual card size depending on whether border and padding are included.

Best forA layout-debugging card, checking grid item sizing

box-sizingcontent-boxborder-box
Box model comparison — a card that shows whether border and padding count toward its size
Open in a new tab

02 Box model comparison — a card that shows whether border and padding count toward its size — Measured area 2.36% · moving frames 22/23Original by GODRICH · SCSS and React ship in the zip · CSS Reset: 9 Patterns From Basics to Safe-Area

The post this demo lives in

CSS Reset: 9 Patterns From Basics to Safe-Area - preview of all 9 demosCSS Reset: 9 Patterns From Basics to Safe-AreaNine css reset patterns: one recalculates padding for the safe area, one shrinks transition duration near zero when moti See all demos in this post

If you like this effect - similar demos