Tiny deamon to break long words
- Add code in your js file
- Use function with parameters like
breakWord('h1', 'break', 15);
- Add in your styles rule for selected class that breaking words, for example:
.break {word-wrap: break-word;}
- Have fun!
Because sometime you need to break only one word that consists a lot of letters. It's handfull on small screens and languages with no support of hyphens