word wrap break word not working table

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Some times we are try with tr or td tag for give the word-wrap: break-word style css then it will not any affect. Then when i was try to give the word wrap css on my td tag i was saw it was not working same as for i did try this with span tag but same result. But when i was take div tag it was also working. So if we are give directly on the td or span then it take div tag inside the td tag and it will give css this way:

Example:

<td><div style="word-wrap: break-word;width:20px">My Level</div></td>

Read Also: Generate Captcha code and Validation by using BotDetect package in laravel

Thanks for read. I hope it help you. For more you can follow us on facebook

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →