CSS Property Value How to - word-spacing: -4px;








Question

We would like to know how to word-spacing: -4px;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.three {<!--from   w  ww.j  a  v  a  2 s.c  o  m-->
  word-spacing: -4px;
}

.three span {
  word-spacing: normal;
}
</style>
</head>
<body>
  <div class="three">
    <span>3. test</span> <span>test</span> <span>test inner spaces</span>
  </div>
  <div class="two">
    <span>2. test</span><span>test</span>
  </div>
  <div class="one">
    <span>1. test</span> <span>test</span>
  </div>
</body>
</html>

The code above is rendered as follows: