Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

James Barnett
James Barnett
39,199 Points

Lined Paper - a Micro Typography Framework

So I got bored today and made this it's pure CSS and works in all major browsers including IE10+. For all your typography baseline grid needs.

http://codepen.io/barnettjw/full/JhkrL

Let me know what you think.

5 Answers

Alan Johnson
Alan Johnson
7,625 Points

That's pretty awesome, James! I did notice that the text was crossing paper lines in the block quote section. Is that because of a browser inconsistency?

Like it - nice work!

John Harrington
John Harrington
1,372 Points

It's the difference in font size that's causing the text to go off the lines, notice the Subhead pushes it off a little too! Forked it and fixed, now uses 1.5em as the distance between lines, and multiples of 1.5em as line-height on all the elements :) http://codepen.io/John92/full/mswAg

Great work James! Brilliant idea :D

James Barnett
James Barnett
39,199 Points

@John I think that did it, thanks!

James Barnett
James Barnett
39,199 Points

You can also use the same technique to compare typefaces.

I often find myself trying to tell the difference between 2 sans-serif typefaces.

So I made this version to be able to better see ascenders, descenders and other microtypography goodness.

http://codepen.io/barnettjw/full/oGvdm