word-spacing:-1px; : word spacing « CSS « HTML / CSS






word-spacing:-1px;

  

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title>CSS Example</title>
<style type='text/css'>
body {
   color:#000000;
   background-color:#ffffff;
   font-family:arial, verdana, sans-serif; 
   font-size:12px;}

.two {word-spacing:20px;}
.three {word-spacing:-1px;}
</style>

</head>

<body>
<h1>word-spacing</h1>
<p class="one">There is a standard gap between each word</p>
<p class="two">There is a 20 pixel gap between each word</p>
<p class="three">There is a -1 pixel gap between each word</p>
</body>
</html>

   
    
  








Related examples in the same category

1.'word-spacing' Example
2.word-spacing: -5px
3.word-spacing: 10px
4.word-spacing: 15px;
5.word-spacing: -5px;
6.word-spacing: normal;
7.word-spacing: 3em;
8.word-spacing: -.5ex;
9.Wide Word Spacing
10.Narrow Word Spacing
11.word-spacing:normal;p.wide {word-spacing:3em;p.narrow {word-spacing:-.5ex;}
12.Letter spacing and word spacing
13.Each letter of each word is ten pixels apart.
14.word spacing negative
15.word spacing: 10px
16.word-spacing: 3em|normal