27 lines
663 B
HTML
27 lines
663 B
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>CSS Test: word-spacing and line-break</title>
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
|
|
<style type="text/css">
|
|
div {
|
|
font: 12px Ahem;
|
|
width: 14em;
|
|
}
|
|
.test span {
|
|
word-spacing: 1em;
|
|
}
|
|
.ws-pre p {
|
|
white-space: pre-wrap;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p>The spaces should trigger a line-break, and the last black box should break onto the next line.</p>
|
|
<div class="ws-pre">
|
|
<p class="test"><span>1234567890 2</span></p>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |