Best Practices for Font Usage using CSS

by Marc the Bard on March 14, 2008

Best Practices for Font Usage using CSS

Cascading Style Sheets for Controlling FontsFonts for the web can be a scary subject, but the best design practices are really pretty simple.

First, you should be using Cascading Style Sheet (CSS) in your web pages. Believe me, your life will be better for it.

When starting a project, figure out what you want the page to look like in a graphics program with good type tools. Photoshop will do. Determine what font colors, header sizes, line-height, paragraph-spacing and other attributes will look good for the type of web site. Once you know what you want, redefine the paragraph and header tags in your Cascading Style Sheet to recreate your design. Set the font to what you want, but give several choices, because not all fonts are loaded on every computer. For example: p { font-family: Verdana, Arial, Helvetica, sans-serif; } lets the browser choose which font to supply based on the user’s system. Now that you’ve redefined the tag, you can specify the font family, color, size, line-height – even letter spacing and margins – for your default paragraph in all your pages, before ever having to create custom styles.

Use only web-safe fonts. This limits your options, but also limits the damage you can do. Be creative with less and you’ll have a nicer final product.

Click here to learn more about best practices for font usage in web design.

{ 1 trackback }

SEO Web Design by BardicMedia.com | Best Practices for Font Usage on the Web
March 14, 2008 at 1:18 pm

{ 4 comments… read them below or add one }

ALDOUS February 24, 2009 at 8:02 am

the site in my reply url.

lutfee March 10, 2009 at 12:15 am

very nice info here. happy to read it.

kasimo March 13, 2009 at 12:53 am

Wonderful ! very good info. keep it up.

sasdaman July 12, 2009 at 6:51 am

Font stacks are also worth looking into when applying font styling to your website. Not only is the primary font really important but also the fonts the stack can fallback. This is common when the client does not have the primary font installed! Search google for font stacks and you will get some good examples!

Leave a Comment

Previous post: Video Search Marketing: Fastest Path to Google Front Page

Next post: Use Cascading Style Sheets for Controlling Fonts

Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting