I use it for font-size/margin
But for borders/border-radius and media-queries I still use pixels.
I'm actually not 100% sure on the "best" answer, but this is my gut feeling and it works well.
Great article... ๐
I would also suggest everyone to check Responsive Font Size (a.k.a. RFS). It's a unit resizing engine which resizes fonts (and more) based on viewport width. Bootstrap also provides an option to enable it.
I don't understand. If rem is directly proportional to px, what advantage does it possibly hold? I've been using px only for borders and %, vw & vh for the rest.
Amazing Post on CSS. Purely loved it. bookmarked. I just love to read short, cool and informative posts. Nice one. ๐ค๐
Chris Short
Software Developer
Should we also be using rems for margins, borders, padding, and basically everything else as well? Or just for font size?