Hi all,
I noticed that when I give the text-align style as "justify", the words are unevenly spaced to justify the alignment. But it looks really weird if there are only two long words in a sentence and many small letter words in the next line. Can any1 suggest a way to align the text inside a <p> to be evenly spaced as well as justified.
How to make the text to hyphenate (i.e split words with a '-' and display it in the next line). Is there a CSS property to accomplish this. I wud be grateful to recieve comments.
Thanks in Advance.
- JohnThere is no property that I know of that can add hyphenation according to line length.
An option is to use "justify" and add a 'zero width spacer' ( ) to long words.
So, "hyphenate" would display normally in the middle of a line, but at the end of a line it would break.Argh!In HTML the plain hyphen is represented by the "-" character (- or -). The soft hyphen is represented by the character entity reference ­ ( or ).Argh!
I noticed that when I give the text-align style as "justify", the words are unevenly spaced to justify the alignment. But it looks really weird if there are only two long words in a sentence and many small letter words in the next line. Can any1 suggest a way to align the text inside a <p> to be evenly spaced as well as justified.
How to make the text to hyphenate (i.e split words with a '-' and display it in the next line). Is there a CSS property to accomplish this. I wud be grateful to recieve comments.
Thanks in Advance.
- JohnThere is no property that I know of that can add hyphenation according to line length.
An option is to use "justify" and add a 'zero width spacer' ( ) to long words.
So, "hyphenate" would display normally in the middle of a line, but at the end of a line it would break.Argh!In HTML the plain hyphen is represented by the "-" character (- or -). The soft hyphen is represented by the character entity reference ­ ( or ).Argh!