I personally use em and rem a lot. But there are cases and cases.
Let's restrict to just length measures. I personally use:
px for border widths, specifically one pixel borders, which are always rendered crisply in most use cases;
em for typographical spaces: box padding, margins, borders radii and shadows (when they make sense, i.e. inline components), larger border widths, (usually minimum) widths of text content boxes;
rem for layout components (wrt sizes, margins, padding, border radii, box shadows);
percentages (including vw and vh) for precise layout displacement, or relative font sizing;
cm or mm for printing.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I personally use
em
andrem
a lot. But there are cases and cases.Let's restrict to just length measures. I personally use:
px
for border widths, specifically one pixel borders, which are always rendered crisply in most use cases;em
for typographical spaces: box padding, margins, borders radii and shadows (when they make sense, i.e. inline components), larger border widths, (usually minimum) widths of text content boxes;rem
for layout components (wrt sizes, margins, padding, border radii, box shadows);vw
andvh
) for precise layout displacement, or relative font sizing;cm
ormm
for printing.