@QLopes22
Posted
In my experience Rem is the go to for fonts but when I use it for widths and heights, I get some funky margin that shifts everything to the left side of the screen.
Does anyone else have that happen to them?
After this project i still have one question without an answer. Which unit should i use, pixels or REM. I read about differences and as i understand REM is based on the root size of font so it will be more "responsive" if user have some extra settings in the browser like bigger fonts. But i dont know if its commonly used by other people and i think i should consider this couse my code has to be readable and easy to edit for others and i will read a tone of code in the future written by others.
@QLopes22
Posted
In my experience Rem is the go to for fonts but when I use it for widths and heights, I get some funky margin that shifts everything to the left side of the screen.
Does anyone else have that happen to them?
@hitmorecode
Posted
For fonts it's best to go with rem and not pixels, rem makes it so that a font is scalable with pixels is not possible. As for other dimensions like width, height, padding, margin. You can use whatever you feel comfortable with.
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord