単語の間隔を指定します。
E5 / IE6 / N6 / N7 / O6 / O7 / O9 / Fx1 / Fx2
要素[.class名][#id名]{ word-spacing : 値; }
| 値 | 初期値 | 意味 |
| normal | ○ | 通常の間隔(指定していないときと同様になります。) |
| 数値+単位 | 間隔の大きさを指定します。数値には負の数も指定できます。単位例:px,em,ex,% | |
| inherit | 親要素の値を継承します。 |
<html>
<head>
<title>サンプルコード</title>
<style type="text/css">
#sample1 {
word-spacing : normal;
}
#sample2 {
word-spacing : 10px;
}
#sample3 {
word-spacing : -10px;
}
</style>
</head>
<body>
<div id="sample1">word-spacing sample 【nomal】</div>
<div id="sample2">word-spacing sample 【10px】</div>
<div id="sample3">word-spacing sample 【-10px】</div>
</body>
</html>