cssfontscufon

word-wrap with cufon


this is css:

h3 {
  font-size: 18px;
  font-weight: normal;
  line-height: normal;
  margin-bottom: 9px;
  word-wrap: break-word;
}

& then applying cufon as:

Cufon.replace('h3');

but text is still rendering in single line. if I'm doing anything wrong here?


Solution

  • Cufon posseses a separate property which you can set to 'words', 'none' or 'characters'.

    Also, a common denominator of many problems I have encountered while working with Cufon is not specifying a STRICT DOCTYPE document header.

    You can read more at: https://github.com/sorccu/cufon/wiki/API