-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.html
160 lines (148 loc) · 6.3 KB
/
display.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>display</title>
<link rel="stylesheet" href="css/media.css">
<link rel="stylesheet" href="css/display.css">
</head>
<body>
<h1 style="text-align: center;">Display inline</h1>
<div class="container" style=" height: 200px; background-color: beige;">
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar
felis blandit. <p class="ex1">HELLO WORLD!</p> Vestibulum volutpat tellus diam, consequat gravida libero
rhoncus ut.
</div>
<br><br>
<div>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar
felis blandit. <p class="d-i">HELLO WORLD!</p> Vestibulum volutpat tellus diam, consequat gravida libero
rhoncus ut.
</div>
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display inline block</h1>
<div class="container" style=" height: 200px; background-color: beige;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis
blandit. <p class="d-ib">HELLO WORLD!</p> Vestibulum volutpat tellus diam, consequat gravida libero rhoncus u
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display block</h1>
<div class="container" style=" height: 400px; background-color: beige;">
<label for="#">Name</label>
<input type="text" name="" id="">
<br>
<label class="d-b" for="#">Name</label>
<input type="text" name="" id="">
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display Flex</h1>
<div class="container" style=" height: 400px; background-color: beige;">
<div class="d-f">
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display inline-flex</h1>
<div class="container" style=" height: 400px; background-color: beige;">
<div class="d-if">
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display Grid</h1>
<div class="container" style=" height: 400px; background-color: beige;">
<div class="d-g">
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display inline-grid;</h1>
<div class="container" style=" height: 400px; background-color: beige;">
<div class="d-ig">
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red;"></div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>
<h1 style="text-align: center;">Display none;</h1>
<div class="container" style=" height: 400px; background-color: beige;">
hidden element
<div class="d-n">
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
<div>
<div style="width: 100px; height: 100px; background-color: red; margin-right: 5px;"></div>
</div>
</div>
</div>
</body>
</html>