-
Notifications
You must be signed in to change notification settings - Fork 1
/
units_for_responsive_designs.html
77 lines (58 loc) · 1.26 KB
/
units_for_responsive_designs.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UNITS FOR RESPONSIVE DESIGNS</title>
</head>
<style>
body{
padding: 0px;
}
.header{
border:2px solid black;
display: flex;
width: 100vw;
height: 100vh;
justify-content: space-evenly;
}
.box{
width: 1em;
height: 0.2em;
display: inline-flex;
justify-content: center;
}
#box1 {
border: 2px solid red;
padding: 2em;
margin: 2em;
font-size:1.4rem;
}
#box2 {
border: 2px solid cyan;
padding: 2em;
margin: 2em;
}
#box3 {
border: 2px solid gold;
padding: 2em;
margin: 2em;
}
#box4 {
border: 2px solid greenyellow;
padding: 2em;
margin: 2em;
font-size:1.4rem;
}
</style>
<body>
<header class="header">
<ul>
<li class="box" id="box1">01</li>
<li class="box" id="box2">02</li>
<li class="box" id="box3">03</li>
<li class="box" id="box4">04</li>
</ul>
</header>
</body>
</html>