If you don’t have one set in the CSS, then 1 em will usually be equal to 16px, which is usually the default font size in browsers. Ems are relative to the font size set in the CSS. They are scalable, and for that reason ems are good for mobile web development. Em as CSS font sizeĮms do not have fixed sizes. Points are very good for setting up a print CSS to overcome that browser issue, but other than that, I would not recommend using points for developing websites. This unit also varies greatly between different browsers and screens when used in CSS. Points are based on an inch on a ruler, and one inch is equal to 72 points. Points are a unit of measurement used in print. That means that fonts will be rendered smaller on a screen with higher resolution than on a lower resolution screen. However, because they are a fixed size, pixels do not size up or down. It allows web developers to make the most accurate, or “pixel-perfect”, rendition of web designs. Because pixels are fixed sizes, they do not change. One pixel is usually equal to one dot on the screen. Another thing to keep in mind when developing for mobile devices is the CSS font size. I have been working a lot with responsive design lately, and as I pointed out in an earlier post on designing for mobile devices, one of the things to keep in mind was phone number formats. As a front-end developer, I personally love working with CSS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |