WordPress.org

Ready to get started?Download WordPress

Forums

Letter-Spacing for "storycontent" (10 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    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?

  2. OperaManiac
    Member
    Posted 10 years ago #

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

  3. oriecat
    Member
    Posted 10 years ago #

    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?

  4. oriecat
    Member
    Posted 10 years ago #

    Oh never mind I think that's line spacing... doh!

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

  7. tcervo
    Member
    Posted 10 years ago #

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

  8. NuclearMoose
    Member
    Posted 10 years ago #

    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! :D
    Craig.

  9. Anonymous
    Unregistered
    Posted 10 years ago #

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

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.