<table width=200 border=1> <tr> <td> К о н т е н т </td> </tr> </table> 

Plain table with specified width. Words are automatically transferred to a new line. And how to make this value absolute? Simply, if in the specified example to write a long set of characters without a space, the table will stretch. How to make, that even the text is transferred without stretching the table in width?

    2 answers 2

    HTML word wrap cannot be done with any tags, and there is no point in using auxiliary code, because the result will not be displayed in all browsers, that is, its cross-browseriness will not be respected. The transfer of words can be done manually, but the result will not please you or your visitors, because the presence of a large number of dashes in the text of the page does not make it attractive. Leave the idea of ​​hyphenation - save your precious time.

    The word-wrap property: break-word; In my work it works as it is not strange only in IE) If long words appear, then you can transfer it manually, but these are probably isolated cases.

    • I agree with all of the above, except that word-wrap works in all browsers, although it can be called a CSS property with a big stretch. - Deonis
    • @Deonis Try in chrom)) I just tried to check)) As far as I remember this solution from Microsoft. I will quote from your link: "The word-wrap property indicates whether or not to transfer long words that do not fit in the specified area. This property is a rough character and gives an error when validating a document to CSS3." - LordySL

    If I understand your task correctly, then I think you need to read about word-wrap