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.

What People Are Saying About PeepCode

“PeepCode is awesome!” Tim O'Reilly, O'Reilly Media
“I suspect there are a lot of smart DF readers out there who know nothing about the Unix-y aspects of Mac OS X, would like to, but never found a good way to get started. This screencast is it.” John Gruber, Daring Fireball
“Mercurial is just what I was looking for. Happy to pay to support people making such high-quality and informative screencasts.” Jason Kottke
“Absolutely fantastic - I haven't seen a PeepCode screencast before and I'm super impressed with the level of graphics/audio...I just finished it and it really is a great intro. Well done.” David Kaneda, author of jQTouch
“These things are fantastic and the price is a steal. I strongly urge you to support this effort and buy the episodes. What a terrific way to learn!” Scott Barron, Rails Core Committer

More Reviews