This week in part 3 of our CSS In Depth series, we’ll discuss something more visual and design related – typography! CSS2.1 provides for a lot of ways to use fonts creatively, and with CSS3, we’ll come even closer to full design control over our typography!
Most people assume that you can only use a few “web-safe” fonts when making websites. While this is a good practice in general, you’ve actually got more choices in fonts than you’d think with font-family. With font-family, you’re able to specify your preferred font first, then replacements in case the visitor’s computer is missing the first font, then a general font-family in case the computer has none of those fonts.
For example, let’s say we want to use the font Helvetica on our website. While almost all Macs come with this font natively, not all Windows machines do. Therefor, we should play it safe by using a secondary font in case a user doesn’t have Helvetica. Arial is pretty close to Helvetica and it’s also a standard font for both Windows and Macs.
Comments
Be the first to write a comment
You must me logged in to write a comment.