Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Wrap in the table when content is very long #75

Open
sunCloud998 opened this issue Mar 7, 2017 · 2 comments
Open

How to Wrap in the table when content is very long #75

sunCloud998 opened this issue Mar 7, 2017 · 2 comments

Comments

@sunCloud998
Copy link

hi,I have a problem, i want to know How to Wrap in the table when content is very long? thank you

@danfickle
Copy link
Owner

Hi @sunCloud998

You could try word-wrap: break-word; Example below:

<html>
<head>
<style>
* { font-size: 24px; }
@page {
  size: 400px 500px;	
}
td {
  border: 1px solid red;	
  word-wrap: break-word;
}
</style>
</head>
<body>
<table>
<tr>
 <td>Somereallylongtextofthisisgoingtobreakeverything</td>
 <td>Whoathatreallybrokeeverything</td>
</tr>
<tr>
 <td>Some short words for a change. How will these break?</td>
 <td>Testing 123. OK, this is some more text.</td>
 </tr>
</table>
</body>
</html>

Result:
table-too-wide

@sunCloud998
Copy link
Author

thank you for your answer, use word-wrap: break-word; can wrap different word,but if my word is very long it will not work . word-break:break-all; can wrap bug the program may be support. such as:
qq 20170308123525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants