-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflex.html
More file actions
75 lines (63 loc) · 969 Bytes
/
flex.html
File metadata and controls
75 lines (63 loc) · 969 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Using Flexbox</title>
<style>
body{
color: #fff;
font-family: 'Nunito Semibold';
text-align: center;
line-height: 3em;
}
#content{
max-width: 960px;
margin: 0 auto;
}
#middle{
display: flex;
}
#sidebar{
flex-grow: 1;
}
header{
background: #3bbced;
height: 50px;
}
main{
background: #e82b69;
flex-grow: 2;
}
aside{
background: #fac24a;
flex-grow: 1;
height: 200px;
}
nav{
background: #8ae348;
flex-grow: 1;
height: 200px;
}
footer{
background: #a56dda;
height: 100px;
}
#middle:after{
content: '';
display: block;
clear: both;
}
</style>
</head>
<body>
<div id="content">
<header>Header</header>
<div id="middle"><!-- extra markup -->
<main>Main</main>
<div id="sidebar"><!-- extra markup -->
<aside>Aside</aside>
<nav>Nav</nav>
</div>
</div>
<footer>Footer</footer>
</div>
</body>