letter-spacing

CSS text justify with letter spacing

爷,独闯天下 提交于 2019-11-27 21:08:44
Is there a way to automatically justify words using letter spacing, each in its row, to a defined width, using CSS? For example, "Something like this" would look, well, something like this: Is there a non-obtrusive way to apply such styling to my text? I believe pure CSS doesn't have this option (at least not with CSS versions before 3, CSS3 seems to have a text-justify property, but it's not well supported yet), so js solutions would be fine also. Dark Falcon Here's a script which can do it. It isn't pretty, but maybe you can hack it to meet your needs. (Updated to handle resizing) function