0

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> 

and

 table-layout: fixed;
    width: 100px;
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
coolhimanshu
  • 647
  • 2
  • 13
  • 26

2 Answers2

1

You should give "word-wrap: break-word;" a try.

Thomas Leu
  • 826
  • 4
  • 13
  • For completeness: [word-break:break-all; vs. word-wrap: break-word;](http://stackoverflow.com/questions/1795109/what-is-the-difference-between-word-break-break-all-versus-word-wrap-break) – Thomas Leu Jan 28 '14 at 11:34
1

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

Browser support for word-break - Can I Use

Jonathan
  • 1,833
  • 13
  • 15