• Anonymous

    I’m having trouble getting the “letter-spacing” command working, but only for the “storycontent” class. I’ve got letter-spacing enabled for several other classes. All other parameters for the “storycontent” class appear to work fine. I’ve tried both pixels and points as my units. Here’s my code….
    .storycontent {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 1pt;
    font-size: 10pt;
    text-align: justify;
    }
    Any suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Sushubh

    (@sushubh)

    the issue afaik is coz of align justify which streches the content itself!
    https://www.blooberry.com/indexdot/css/properties/text/letterspace.htm

    oriecat

    (@oriecat)

    Doesn’t that letter spacing come from the font characteristics in the “p” section? Like where it says font: 100%/125%? or is that something else?

    oriecat

    (@oriecat)

    Oh never mind I think that’s line spacing… doh!

    Thread Starter Anonymous

    CSS 2 Specification:
    “Character spacing algorithms are user agent-dependent. Character spacing may also be influenced by justification”.
    It might possibly be working fine but not showing on your browser. Just a thought.

    Thread Starter Anonymous

    I’ve removed the text-alignment from the class and still have the problem. And as I said, the letter-spacing works flawlessly when applied to any class but the “storycontent” class.

    tcervo

    (@tcervo)

    Have you tried explicitly defining the p tag for the storycontent class?
    .storycontent p {…}
    Might work…

    NuclearMoose

    (@nuclearmoose)

    I would suggest that a link to the site with the problem is a good way to allow the community to have a direct look to see if they can find anything.
    So, anonymous…the ball is in your court! ??
    Craig.

    Thread Starter Anonymous

    Defining the p tag worked like a champ. And for future reference, text-align and letter-spacing, work together as well. Thanks.

    Thread Starter Anonymous

    Heres a line of thought. this looks like a “silly” error type of thing possibly.
    Just wondering if you have altered the index php at all and in particular whether you have changed the storycontent name or somehow missed some punctuation – something like that. Xhtml compliant browsers are very unforgiving.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Letter-Spacing for “storycontent”’ is closed to new replies.