akira-dude / break-words-jq

Tiny deamon to break long words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

break words jq

Tiny deamon to break long words

Usage

  1. Add code in your js file
  2. Use function with parameters like breakWord('h1', 'break', 15);
  3. Add in your styles rule for selected class that breaking words, for example: .break {word-wrap: break-word;}
  4. Have fun!

Why?

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

About

Tiny deamon to break long words


Languages

Language:JavaScript 100.0%