coming soon… how to do hanging punctuation with javascript/css

nerkles July 17th, 2005

I figured out some unobtrusive javascript to do hanging punctuation… So keep an eye here for my write-up of how to do it, and free code.

2 Responses to “coming soon… how to do hanging punctuation with javascript/css”

  1. Jeson 06 Nov 2005 at 3:10 pm

    I kept an eye here - for quite some time now. Did you forget this topic? Please don’t say so. :-)

  2. nerkleson 07 Nov 2005 at 2:34 pm

    Hi, I haven’t forgotten, but have been way too busy. But if you wanna mess with it, you have to get a span around the opening quote and then give it a negative left margin. The trick is using JavaScript to get the exact pixel width of the quote mark and then use that number (probably minus a few px) to set the negative margin.

    That’s about all there is to it, but I was thinking of figuring out a way to make it all automatic so you don’t have to manually mark up all your punctuation.

Trackback URI | Comments RSS

Leave a Reply