Javascript examples for CSS Style Property:wordSpacing
Using negative values for word spacing
<!DOCTYPE html> <html> <body> <p id="myP">This is an example paragraph.</p> <button type="button" onclick="myFunction()">Set word spacing</button> <script> function myFunction() {// ww w .java2s . c om document.getElementById("myP").style.wordSpacing = "-3px"; } </script> </body> </html>