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









Related Tutorials/Questions & Answers:
How to Word-wrap in an HTML table?
ModuleNotFoundError: No module named 'tableh'
Advertisements
Data fetch from multiple SQL tables - Hibernate
ModuleNotFoundError: No module named 'tabler'
ModuleNotFoundError: No module named 'tabler'
ModuleNotFoundError: No module named 'html_nested_tables'
ModuleNotFoundError: No module named 'django-tabler'
ModuleNotFoundError: No module named 'tablet'
how to set the tables one is left and another one is right - JSP-Servlet
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 disable an HTML object?
how can i hide and show tables
merge tables in sql using union
how to load pdf on html
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 store array values into two different tables in java?
how to connect webcam in html
Nest tables within tables
How to Open a File in HTML Form
How to redirect from a HTML page?
How to Generate XML files from the data in DB tables?
How to chage content in HTML pages?
how to create a combo box in html
how to get values for same column name from two different tables in SQL
how to send html email from dreamweaver
How to convert entity character to html character
Comparing tables
html
how to use ajax in html file
how html tags are extracted using java?
how html tags are extracted using java?
tables for layout
tables for layout
HTML
HTML
html
HTML
how to add the two tables in same row when generating pdf file from jsp - JSP-Servlet
How to create simple HTML Form?
How to convert entity character to html character
How to use css in simple HTML application
CSV tables
html
html

Ads