While defining a font size avoid using em as much as possible. Use it only when it is necessary. To maintain the consistency, use rem unit.
I would go so far and say don't use rem units either. What happens when the clients asks for a certain text to have exactly 13px, or he wants to increase the font size by 1px. There's too much math for too little gain.
I stick to pixels across the board, in my design stack and also in css, javascript. This way I have consistency.
I would go so far and say don't use rem units either. What happens when the clients asks for a certain text to have exactly 13px, or he wants to increase the font size by 1px. There's too much math for too little gain.
I stick to pixels across the board, in my design stack and also in css, javascript. This way I have consistency.
Yes, I agree. I use rem only because it scales automatically otherwise pixel is fine. Thank you for your valuable response.