-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcssgrid3.html
More file actions
64 lines (54 loc) · 1.34 KB
/
cssgrid3.html
File metadata and controls
64 lines (54 loc) · 1.34 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Grid #03</title>
<link rel="stylesheet" href="css/tag.css">
<style>
* {
padding: 0;
margin: 0;
}
header {
grid-area: cabecalho;
}
nav {
grid-area: navegacao;
}
main {
grid-area: conteudo;
}
footer {
grid-area: rodape;
}
body {
display: grid;
min-height: 100vh;
grid-template-columns: 300px 1fr;
grid-template-rows: 100px 1fr 100px;
grid-template-areas:
'cabecalho cabecalho'
'navegacao conteudo'
'rodape rodape'
}
@media(max-width: 700px) {
body {
grid-template-columns: 1fr;
grid-template-rows: 80px 80px 1fr 80px;
grid-template-areas:
'cabecalho'
'navegacao'
'conteudo'
'rodape'
}
}
</style>
</head>
<body>
<main class="tag">CONTEÚDO</main>
<header class="tag">CABEÇALHO</header>
<footer class="tag">RODAPÉ</footer>
<nav class="tag">NAVEGAÇÃO</nav>
<script src="js/tag.js"></script>
</body>
</html>