DEV Community


Posted on

CSS units

font-size: rem
width: % in combination with a max-width, ch
height: question urself "do i rly need to set height" if yes -> use a min-height
padding/margin: rem or em, em for padding of buttons
media queries: em

px only for little things like shadows, borders etc.

Discussion (0)