-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrids.html
More file actions
61 lines (53 loc) · 853 Bytes
/
grids.html
File metadata and controls
61 lines (53 loc) · 853 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
<!DOCTYPE html>
<html>
<head>
<title>Using CSS Grid</title>
<style>
body{
color: #fff;
font-family: 'Nunito Semibold';
text-align: center;
}
#content{
display: grid;
grid-template-columns: 1fr 2fr;
grid-auto-rows: minmax(150px, auto);
max-width: 960px;
margin: 0 auto;
}
#content > *{
padding: 10px;
}
header{
grid-column: span 3;
background: #3bbced;
}
main{
grid-column: 2 / 4;
grid-row: 2 / 4;
background: #e82b69;
}
aside{
grid-column: 1 / 2;
background: #fac24a;
}
nav{
grid-column: 1 / 2;
background: #8ae348;
}
footer{
grid-column: span 3;
background: #a56dda;
}
</style>
</head>
<body>
<div id="content">
<header>Header</header>
<main>Main</main>
<aside>Aside</aside>
<nav>Nav</nav>
<footer>Footer</footer>
</div>
</body>
</html>