Skip to content

Instantly share code, notes, and snippets.

@prabhuramkumar
prabhuramkumar / CSS trick on word-wrap.md
Last active June 17, 2020 20:01
CSS trick on word-wrap for table content

Just came across this scenerio... word-wrap on table td's don't work the work around for this is adding a wraper div and then applying word-wrap:break-word on it. But then this is not a semantic solution whichc adds extra divs around content.

Another work around is adding table-layout:fixed on the main table and then addding word-wrap:break-word on td's.

adsfdsafsdfsadfsdafsadfsd