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 'html_nested_tables'
ModuleNotFoundError: No module named 'tabler'
ModuleNotFoundError: No module named 'tabler'
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
merge tables in sql using union
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
JSP hide and show tables
How to disable an HTML object?
how to do two database tables in one page?
how can i hide and show tables
how to load pdf on html
How do you map Java Objects with Database tables?
How to create options in HTML
how to space images in html code
Nest tables within tables
how to store array values into two different tables in java?
html
how to connect webcam in html
How to Open a File in HTML Form
Comparing tables
HTML
HTML
html
HTML
tables for layout
tables for layout
How to redirect from a HTML page?
html
How to chage content in HTML pages?
html
HTML
html
How to Generate XML files from the data in DB tables?
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
how to create a combo box in html
HTML
CSV tables
HTML
HTML
HTML
use tables to structure forms

Ads