coolhimanshu coolhimanshu - 10 months ago 39
HTML Question

How to make fixed width td If I enter data without space

I have a Fixed size table and I have to show the data in a td. The Issue is If I enter the Data with spaces then UI is appearing Perfect because in td data adjust in new line but if i entered 20 characters without space then my UI got disturbed. Any help will be appreciated. I have tried so many option but no one can help, like:-

<td width="200"></td>


table-layout: fixed;
width: 100px;

Answer Source

You can use word-break:break-all; on your td example here - JSFiddle

Browser support for word-break - Can I Use