How to Word-wrap in an HTML table?

How to Word-wrap in an HTML table?

Hi,

I have HTML table in a web application. When long word grows it does not wordwraps.

How to Word-wrap in an HTML table?

Thanks

View Answers

April 26, 2017 at 4:38 PM

Hi,

You may try this code:

<style>
td {
  border: 1px solid gold;
}
</style>

<table style="table-layout: fixed; width: 100%">
  <tr>
    <td style="word-wrap: break-word">
      LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongWord
    </td>
  </tr>
</table>

Thanks

Ads









Related Tutorials/Questions & Answers:
How to Word-wrap in an HTML table?
ModuleNotFoundError: No module named 'html_nested_tables'
Advertisements
ModuleNotFoundError: No module named 'tableh'
ModuleNotFoundError: No module named 'tabler'
ModuleNotFoundError: No module named 'tabler'
ModuleNotFoundError: No module named 'tablet'
ModuleNotFoundError: No module named 'django-tabler'
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans
how to do two database tables in one page?
how to load pdf on html
how can i hide and show tables
merge tables in sql using union
JSP hide and show tables
How do you map Java Objects with Database tables?
How to create options in HTML
how to space images in html code
how to connect webcam in html
how to store array values into two different tables in java?
How to Open a File in HTML Form
How to redirect from a HTML page?
How to chage content in HTML pages?
how to create a combo box in html
how to send html email from dreamweaver
How to convert entity character to html character
html
how html tags are extracted using java?
how html tags are extracted using java?
How to Generate XML files from the data in DB tables?
how to use ajax in html file

Ads