Forcing headings to wrap in html

froadie picture froadie · Dec 16, 2009 · Viewed 38.5k times · Source

I have a web page that displays a pdf document. In the header there is an image and an h1 tag that contains a name. When the name is too long, it gets cut off. How can I force it to wrap to the next line instead so that the entire name is displayed? I tried inserting a style="white-space:normal" but it doesn't help. Any suggestions?

Answer

Tor Valamo picture Tor Valamo · Dec 16, 2009
word-wrap:break-word;