Grow your CSS skills. Land your dream job.

How do I make apostrophes in HTML or css instead of inch marks?

  • # January 9, 2013 at 10:36 am

    My website is displaying the apostrophes as inch marks.. how do I change this?

    http://www.sgw.com/testnve/

    # January 9, 2013 at 10:42 am

    Because you have coded them that way.

    You need to use unicode characters for the best results but be aware that that your font may be at fault here if it uses the same symbols.

    Double Open Quote

    Double Close Quote

    # January 9, 2013 at 11:08 am

    Thanks! I always thought they were apostrophes not inch marks, until this project. Thanks again!

    # January 9, 2013 at 11:25 am

    double-open-quote: `“`

    double-close-quote `”`

    If you use a unicode encoding, as Paulie_D suggests (UTF-8 is [almost] *always* the best choice), you can simply use those characters directly in your text and not worry about it.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".