-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflexbox.html
59 lines (56 loc) · 1.24 KB
/
flexbox.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
<html>
<head>
<style>
body {
font-family: Arial;
text-align: center;
background: url('http://hdwallpaperbackgrounds.net/wp-content/uploads/2015/07/History-Of-Windows-Xp-HD-Wallpapers.jpg') no-repeat center center fixed;;
background-size: cover;
}
.parent {
min-height: 300px;
width: 600px;
border: 2px solid black;
display: flex;
margin: 30px auto;
box-shadow: 0px 0px 12px 7px #ccc;
background-color: white;
}
.child {
height: 200px;
width: 150px;
border: 2px solid black;
background-color: #0489B1;
color: white;
margin: 10px;
text-align: center;
line-height: 200px;
font-size: 36px;
font-weight: bold;
}
.code {
font-family: courier;
color: #D45252;
}
.container {
width: 800px;
margin: 50px auto;
padding: 20px;
border: 2px solid black;
background-color: rgba(255,255,255,0.9);
}
</style>
</head>
<body>
<div class="container">
<h1>Five Minutes of <span class="code">Flexbox</span></h1>
<h2>Use <span class="code">display: flex</span> on parent container</h2>
<p>Immediate children become 'flex items'</p>
<div class="parent">
<div class="child">A</div>
<div class="child">B</div>
<div class="child">C</div>
</div>
</div>
</body>
</html>