blob: 0e1b3aaa373533d4866986eb24b12cc0a974b1b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<html>
<head>
<title>[css3-text] text-indent</title>
<style>
div { width:80px; font: 10px Ahem; background-color:lightgray; }
.normal { text-indent: 4em; }
.eachline { width:80px; text-indent: 4em each-line; }
.indent { color: blue; }
</style>
</head
<body>
<!--
all black boxes should be left-aligned.
all blue boxes should be right-aligned.
-->
<!-- normal text-indent -->
<div class="normal">
<span class="indent">xxxx</span><br>xxxx<br>xxxx
</div>
<br>
<!-- each-line with a soft wrap break -->
<div class="eachline">
<span class="indent">xxxx</span> xxxx xxxx
</div>
<br>
<!-- each-line with a forced line break -->
<div class="eachline">
<span class="indent">xxxx</span><br><span class="indent">xxxx</span><br><span class="indent">xxxx</span>
</div>
<br>
<!-- each-line with a soft wrap break and a forced line break -->
<div class="eachline">
<span class="indent">xxxx</span> xxxx<br><span class="indent">xxxx</span>
</div>
</body>
</html>
|