Issue
What is the difference between px, em and ex? And when you define font-size in CSS, do you use px, pt or em?
Solution
- Pixels (
px) are browser dependent. It is the absolute size that you would see on your screen. Emare sort of like percentages.Ems is referring to the base text size. The value of1 emmeans the same thing as a value of100 percent. But you can also say it in the opposite way: A percentage value is just anemmultiplied by 100.- Points(
pt) are what you would want to use in print media.
Answered By - Joshua Partogi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.