Question : HTML Table - Word Wrap with CSS

Need a way to wrap long text in a HTML table cell.  Needs to work across browsers.

Answer : HTML Table - Word Wrap with CSS

if you set a width on a table cell, it will automatically wrap the text within that cell.
if you don't specify a width, it will try to resize the cell around the content.
this will work cross browser.

you can do this either inline on the table cell, or with CSS.

eg:

table.classname td {
  width: 100px;
}
Random Solutions  
 
programming4us programming4us