Typography

The redesign of this site uses several experimental typographical features that you won’t see on many other websites.

But feel free to loot these ideas for your own site!

Fancy Ampersands

Ampersand

Most typefaces don’t have an interesting ampersand (& vs &), but you can specify a better one in titles. I use a technique made popular by Dan Cederholm where he wraps them in a special span that is styled with an interesting italic ampersand.

A custom Rails helper method does the automatic span wrapping on selected elements.

span.amp {
  font-family: "Palatino", serif;
  font-size: 110%;
  font-style: italic;
}

Consistent Baselines

Baselines

Graphic designers know that layouts with a consistent baseline will look much better than inconsistent ones.

Even if you are not a graphic designer, this is an easy way to make your text look tidy.

Our free Baseline Rhythm Calculator can be used to generate a basic stylesheet with the proper calculations.

Click see the link under “Fun and Games” for an example used to debug this site.

If you want to calculate it yourself, the steps are straightforward:

Or, let the Baseline Rhythm Calculator do this for you.

Elements that can stomp on your rhythm:

Have a Coupon?

Login or signup and enter the code on your account page. If it is still valid you will be able to browse the list of products and redeem one!

Subscribe!

Save money and learn a lot, too! PeepCode Unlimited gives you access to everything we publish for a full year. A 10 Pack will save you $20 and a 5 Pack will save you $5.

Site licenses and team subscriptions are also available! Contact peepcode@topfunky.com with the number of developers you have and the number of credits you would like to buy and we will send you a personalized quote.