HTML & CSS
Hi, I have question on the font, i was inspecting some website,some website start font size in body tag,..my question is what is the right way to use font size in the body tag also what unit should be use isn't percentage,em or rem ?, or how do you set up font size in the body tag ?
Thank you in advance.
The only reason for specifying a font size in the body tag is for antiquated long dead versions of Internet Explorer that didn't interpret em sizes properly without it. To cover for those browsers a font-size as a % needed to be specified - exactly what % you used didn't matter so 100% made the most sense although some people tended to use other percentages on the mistake assumption that by doing so they would somehow equate em with specific pixel sizes.
This topic is now closed. New replies are no longer allowed.