The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Making variable length blog post titles look good

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #168920


    This has always been something that’s bugged me and I’ve never found a reliable, easy way to fix it.

    Consider the following pen:

    As you can see, the difference in title length makes them look a little fugly, especially when you resize so the first one spans three lines. In a boxy-gridy layout it really doesn’t look so great.

    What are ways to fix this? Hoping for css only approaches, I’ve tried some js magic on it, testing heights and resetting, but it’s a little buggy at best.



    A perennial issue.

    I’ve always found that picking a shorter title is simpler. I can always expand on the title in my first paragraph.

    It’s a headline…headlines are supposed to be short.

    I’m not trying to be flippant but does the title really need to be that long?

    Brevity is the soul of wit.


    That’s a very valid point Paulie, but when the client, or his/her minions, is in control I can’t always make sure that rule is in effect :)


    Sorry, I don’t quite follow you wolf. Could you perhaps elaborate a little?


    Ah, that sneaky whitespace caught me out. Well that’s certainly a better option, it’s just a shame it throws the widths off…

    I could use the comment trick I guess, but would also have to use hacks to get IE7 to play nice too…

    CSS is fun huh.

    Thanks though, will look into it some more.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.