css word-spacing property


  Translation results:

word

英[wɜ:d] 美[wɜ:rd]

n. Word; Discourse; Promise; Message

vt .Wording, wording; expressing with words

vi.Speech

spacing

English[ˈspeɪsɪŋ] US[ˈspesɪŋ]

n. Spacing, spacing; span; density; spacing

css word-spacing propertysyntax

Function:The word-spacing attribute increases or decreases the space between words (ie, word spacing).

Description: This attribute defines how many whitespace characters are inserted between words in the element. For this attribute, "word" is defined as a string surrounded by whitespace. If specified as a length value, the normal spacing between words is adjusted; therefore, normal is equivalent to setting it to 0. Allows specifying negative length values, which causes words to be squeezed closer together.

Note: Negative values ​​are allowed. Using this property, it is possible to create documents with words that are too widely spaced, so be careful when using word-spacing.

css word-spacing propertyexample

<html>
<head>
<style type="text/css">
p.spread {word-spacing: 30px;}
p.tight {word-spacing: -0.5em;}
</style>
</head>
<body>
<p class="spread">This is some text. This is some text.</p>
<p class="tight">This is some text. This is some text.</p>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A