File tree 1 file changed +93
-0
lines changed
1 file changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="utf-8 ">
6
+ < title > Size: the resize property</ title >
7
+ < link rel ="stylesheet " href ="../css-cookbook/styles.css ">
8
+ < style >
9
+
10
+ .container {
11
+ display : flex;
12
+ }
13
+ .box {
14
+ border : 2px solid rgb (96 , 139 , 168 );
15
+ border-radius : 5px ;
16
+ background-color : rgba (96 , 139 , 168 , .2 );
17
+ padding : 10px ;
18
+ margin : 10px ;
19
+ overflow : scroll;
20
+ }
21
+
22
+
23
+ </ style >
24
+
25
+ < style class ="editable ">
26
+ .box {
27
+ writing-mode : horizontal-tb;
28
+ }
29
+
30
+ .physical {
31
+ width : 200px ;
32
+ height : 100px ;
33
+ resize : horizontal;
34
+ }
35
+
36
+ .logical {
37
+ inline-size : 200px ;
38
+ block-size : 100px ;
39
+ resize : inline;
40
+ }
41
+ </ style >
42
+ </ head >
43
+
44
+ < body >
45
+ < section class ="preview ">
46
+ < div class ="container ">
47
+ < div class ="physical box ">
48
+ I have a width of 200px and a height of 100px. I can be resized horizontally.
49
+ </ div >
50
+
51
+ < div class ="logical box ">
52
+ I have an inline-size of 200px and a block-size of 100px. I can be resized in the inline direction.
53
+ </ div >
54
+ </ div >
55
+ </ section >
56
+
57
+ < textarea class ="playable playable-css " style ="height: 240px; ">
58
+ .box {
59
+ writing-mode: horizontal-tb;
60
+ }
61
+
62
+ .physical {
63
+ width: 200px;
64
+ height: 100px;
65
+ resize: horizontal;
66
+ }
67
+
68
+ .logical {
69
+ inline-size: 200px;
70
+ block-size: 100px;
71
+ resize: inline;
72
+ }</ textarea >
73
+
74
+ < textarea class ="playable playable-html " style ="height: 180px; ">
75
+ < div class ="container ">
76
+ < div class ="physical box ">
77
+ I have a width of 200px and a height of 100px. I can be resized horizontally.
78
+ </ div >
79
+
80
+ < div class ="logical box ">
81
+ I have an inline-size of 200px and a block-size of 100px. I can be resized in the inline direction.
82
+ </ div >
83
+ </ div >
84
+ </ textarea >
85
+
86
+
87
+ < div class ="playable-buttons ">
88
+ < input id ="reset " type ="button " value ="Reset ">
89
+ </ div >
90
+ </ body >
91
+ < script src ="../css-cookbook/playable.js "> </ script >
92
+
93
+ </ html >
You can’t perform that action at this time.
0 commit comments