I have a small question, I am creating a template and I want to use rem
sizes for my project. As far as I understand I have to put real size in px
at <body>
tag, so all sizes will be scaled according that size in <body>
tag. So what font size in px
should I use for <body>
tag?
CodePudding user response:
Browsers have default sizes that can change based on device type, it's fine to leave it as the default, aka not set it to anything
If you really want to set it to something, 16px is common, StackOverflow uses 15px
CodePudding user response:
It will help you to set the font-size to 62.5% for the body because it'll be easier for you to later set something like 3.2rem for a 32px equivalent. Please read more here CSS 62.5% why do developers use it?