A Rant on Typography and Spacing

There comes a time when 12px font size and 10px of padding around your content is simply a no-no. In other words, styling your website this way is now a faux pas.

It’s your responsibility to serve up a good experience for your visitors. Now before I go on, I’ll show some examples of what I’m talking about — so that it’s crystal clear.

M’kay?

Here’s an example of bad typography – the kind that kills little puppies late at night:

Bad Typography

Here’s an example of good typography – the kind that makes little angels gets their wings:

Good Typography

To illustrate the differences, here are the font stacks for each respective example:

Sorry, little puppies…

.bad-typography p {
    font-family: Arial, Tahoma, sans-serif;
    font-size: 12px;
    margin: 0 0 10px;
    padding: 10px;
}

Woohoo, angels…

.good-typography p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin: 0 0 25px;
    padding: 30px;
}

Can you see the difference between the two? Yeah, that’s what I’m thinking. Me too.

Customizing CSS to make this kind of change on your website is a really an easy thing to do. It shouldn’t take more than a few minutes, if that — so go do it NOW!

If you want to save the world, one squinting eye at a time, stand up and make a difference. Go out and get yourself something from Typekit or hook yourself up with something (and they are free, might I add) from Google Web Fonts.

Not sure which combination of fonts to use? Well I got ya covered.

Now repeat after me… “I will care about typography and spacing on my website.”

Say it again. And again. And again.

Follow that up by saying… “16px font is the new 12. 30px (at least) padding is the new 10.”

After you’ve spruced up your typography and spacing, please take a few minutes to read about another something important — responsive web design.

Trust me, your visitors will love you for it.

Email Newsletter

Like what you read here in this blog post?
Get more like it delivered to your inbox daily.

Comments

  1. John Nguyen says

    Just an interesting thought, but to push this a little further in the right direction in regards to responsive web design… I would suggest using proportional dimension system like EMs rather than PX for font-size.

  2. John Nguyen says

    Oops, I forgot to mention since we’re being progressive… CSS3 has the ability to do vw and vh, to make the font-size proportional to the viewport as well.

  3. says

    My font on DG is larger
    because I need it that big to see it…

    Probably too big for lots of folks…

    I often have to use Cntl + to enlarge
    folks sites as I navigate the web…

    ~Patricia – DomainBELL

  4. says

    Completely agree on the em vs px. Makes everything look much more balanced.

    Need to disagree just a little on the amount of space and the size of the font overall. Agreed that 12 is just too small, but I often find that 16 is just too big for making a site feel comfortable for many.

    I love the fact there are comments here regarding responsive too. Consider making the font even larger on the smaller devices.

    • says

      Typography and spacing can mean a lot of different things for different people under varying circumstances. More than anything, my rant isn’t about splitting hairs — rather encouraging folks to move forward with the way their websites look.

      I think we can all agree that my diagnosis on this web experience is spot on.

      But I agree with you – some fonts, Google and Typekit in particular, look a bit odd at 16px in size. Like you said, depends on the situation.

  5. says

    I couldn’t agree more with you. 12px font came from the print world, which on paper is a great size, however, we sit much further away from our computer screens, than we do with a newspaper, books, magazines, ect., which we hold much closer when we read.

    I do want to mention, though font size is important, line spacing (line-height in CSS) is equally important and often underlooked. Giving the font a little more space between lines especially with wider copy of texts allows the eyes to easier track and follow along the sentences without loosing position. And of course, bringing up copy width, when sizing your font, always want to keep CPL in mind; too few our eyes are jumping around too much, too long, the eyes begins to strain to scan the entire width of text.

    Anyways, great article, it is important to let people know its ok to bump up the pixels, and actually preferred.

    • says

      Chris, you are spot on with line spacing and what not. Like I’ve said, there isn’t a magical CSS equation that covers all. Of course content width and proportions to overall site width also play a factor.

      The ironic thing is that currently most (if not all) browsers render the default body size to be 16px. And that article was written 5 years ago.

  6. says

    Thank you…a million times, thank you. I just saw a design client’s blog the other day where she went in and changed the font to 12px illegible awfulness – with a 700px wide content column! I can handle people messing with their colors, but LEAVE THE FONT SIZE ALONE.

    Sorry. I get a little worked up about this issue. Thanks for providing a “safe space” for my follow-up rant. :)

      • says

        Awesome resource – thanks for passing it along! I talk big, but I’m not sure I have the guts to send her a link to it personally. Confrontation is easier for me in real life than via email. :) But maybe on my FB page…

      • says

        Well done for the callout to Chris Pearson, who’s campaigned for great typography for a while. Having switched from Thesis, I do miss the font size controls in the dashboard, and the proportional changes that happened as a result of dashboard changes. Maybe that’s something that we might see in Genesis in some form?

  7. says

    Brian, you put the spotlight on one of the biggest website issues today! Thank you.

    I struggle revisiting sites with bad typography. But it’s interesting how folks don’t even notice it. What’s even worse is coming across newly developed wp themes with bad typography (oof!).

    One thing is for sure, StudioPress is definitely setting the new web standard!

    • says

      I love the designs that I see on Theme Forest, but in my opinion, the typography there follows the same trend — extremely small font sizes. In some cases I’ve Firebugged to confirm that 10px font is sometimes being used.

  8. says

    Not such a rant Brian.
    I noticed on your similar piece on Facebook that the comments generally implied that it was an age thing… reading glasses and the like.

    I don’t think that it is an age thing.
    It’s a wanting to be able to read easilly thing and that applies regardless of age.

    Your “bad typography” example is a real turn-off, but you still see it, and worse, all over the net.

    Eh… a round submit button.

    • says

      Yes, this is an internet epidemic.

      As for the round submit button, that’s just me having fun with CSS and ripping off the way Rafal did it on his blog. Though he pulls it off better.

  9. says

    Great post Brian, and yes, over the last 12 months have changed my theme out 4 times (neurotic… I know) and each time I did, it being one of your child themes, I never touched the CSS for the text… have loved it the way it is.

    But what’s most interesting is the feedback I have received. Two things always come up… “easy to read” and “clean”.

    I hope more theme devs come to this conclusion : )

  10. says

    Well, Marcy beat me to the punch, but I love how WP’s new Twenty Twelve theme uses rem values with a pixel fallback. Definitely hope that becomes the norm; especially for any responsive designs. Good post Brian!

    • says

      It really depends on the situation at hand. I don’t think I’d like it if there was a content/sidebar style layout — but I think that Whitney Hess could have pulled it off on her site with a single column approach with her content.

  11. says

    Brian, you are preaching to the choir. As someone who deals with acres of online text everyday (both reading and writing), I couldn’t agree with you more. Not everyone has the eyes of a young person. Anything below 14px leaves me with a headache. The feeling of larger type with more white space is like when you slip out of your favorite tight jeans into stretch pants. So, let your readers breathe, I say.

  12. says

    Really interested in checking out REMS–thanks for the info!

    As someone who has been a typophile for 17 years, there’s just so much further the web can go with good typography. The promise of web typography is just starting to evolve. For instance, I’m dying for kerning and hyphenation tables for setting really beautiful type. Also, type breaks that can go responsive. Like, this weekend I was working on my first responsive design, and the headlines had to be stacked based on the viewport, not on what was most visually appealing. So I basically had to mess with the margins/padding of each headline element at common breakpoints to get it to display the way I intended. There’s got to be a better solution, it just doesn’t exist yet (that I know of). It looks like kerning can be handled by http://letteringjs.com, which is on my “to try” list, so maybe that wishlist item will be granted. I’m also intrigued by or http://fittextjs.com.

    It also really helps to look at some of the type masters to see how they have handled type in the past–Neville Brody is one of my favorites..David Carson was really influential, but I think it’s going to be awhile before web typography lets us go *that* crazy in anything that isn’t experimental…

  13. Steve Allcock says

    I think you could explore paragraph spacing, your example of “good typography” doesn’t extend to your paragraph spacing.

      • Steve Allcock says

        Pacing and rhythm are lost with massive paragraph spaces. The continued use in the interactive world of a whole return between paragraphs (paragraph spacing) instead of appropriately set spaces or better still indents shows that a continued lack of basic typographical knowledge has become prevalent.

  14. says

    Font size doesn’t worry me that much. Setting a font to a certain size does nothing because you have no idea what the end viewer has for settings on his monitor. Case in point, this comments page. I run Firefox with No Squint add-on at 150% and this page looks decent. But, if I run that down to 100% it is completely illegible. All my monitor settings on my 24″ monitor are set to Normal, so if I didn’t use 150% I wouldn’t be able to read a thing.

    What gets to me more is nutjob designers that will put a medium value color text, say medium brown, on a darker value background of the same color, like dark brown. Do these designers even look at their work when they’re finished?

  15. says

    OK Brian. You got me on this one.
    I just changed my font to Google (added to CSS stylesheet) and selected one of your top 5 recommended ones.

    It definitely makes it easier to read, and that’s something I was looking for, because it’s quite different when I read it from my Macbook compared to the rest of my PCs and mobile devices.

  16. says

    Brian, there’s always room in this world for a rant on typography as spacing. Too often we forget or ignore details like is, and the reading experience suffers, which is bad. My college professor would go on similar rants. This was during the Dark Ages circa 1996. The one thing I learned was that details matter.

    By the way, I’m loving the new theme here too. Where is it in the gallery?

  17. says

    I am still amazed people are using the font in the ‘puppy killer’ example and I completely stopped reading such blogs. Most of those seem to be using some old themes from the very beginning of WordPress, I just don’t understand how can they read their own blogs and not see it.
    I use Genesis framework so installing a theme by default gives me great fonts but even with that I still experiment with different spacing and fonts to always have a site that is easy to read and scan (for those who don’t read whole posts).

  18. says

    Here, here. Over the last several months, I’ve gone as far as taking my website full width (975px). I’m using the Georgia font at 19px with a line-height of 31px. I’ve received great feedback and the stats show more people are actually reading.

  19. says

    I love your sense of humour Brian. I’ve been chanting topography and spacing all along and I’m not even a designer.

    By the way, may I hijack the font you currently use for your blog?

  20. says

    Hello, Brian! I’m just finding this post for some odd reason, but I wanted to stop by to say THANK YOU for all of the kind comments on my website’s typography and spacing. When I redesigned it last summer, I felt like I was taking a big risk pulling all the layers away and having the content sit there all by itself — thereby forcing the reader to contend with it. Not everyone has been a fan of my approach, and that’s okay. I’m just glad someone out there gets what I was going for. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>