forked from mdn/css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext-align.html
80 lines (65 loc) · 1.46 KB
/
text-align.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align logical values</title>
<link rel="stylesheet" href="../css-cookbook/styles.css">
<style>
.container {
display: flex;
}
.inner {
width: 200px;
border: 2px dotted grey;
padding: 10px;
}
</style>
<style class="editable">
.inner {
direction: ltr;
}
.physical {
text-align:right;
}
.logical {
text-align: end;
}
</style>
</head>
<body>
<section class="preview">
<div class="container">
<div class="inner physical">
Aligned text
</div>
<div class="inner logical">
Aligned text
</div>
</div>
</section>
<textarea class="playable playable-css" style="height: 240px;">
.inner {
direction: ltr;
}
.physical {
text-align:right;
}
.logical {
text-align: end;
}</textarea>
<textarea class="playable playable-html" style="height: 180px;">
<div class="container">
<div class="inner physical">
Aligned text
</div>
<div class="inner logical">
Aligned text
</div>
</div>
</textarea>
<div class="playable-buttons">
<input id="reset" type="button" value="Reset">
</div>
</body>
<script src="../css-cookbook/playable.js"></script>
</html>