-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLayout com CSS Grid.html
68 lines (58 loc) · 1.42 KB
/
Layout com CSS Grid.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<title>Grid</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="header">Cabeçalho<br> * Nossa Lar * </header>
<aside class="aside">Menu:<br> 1*<br> 2*<br></aside>
<main class="main">Conteúdo:<br> Carne<br> Fanta<br></main>
<footer class="footer"><cente>Rodapé</cente> <br>Sinta-se a vontade.</footer>
</body>
<style>
* {
margin: 0px;
padding: 0px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
color: #FDFDFD;
display: grid;
grid-gap: 10px;
grid-template-areas:
"header header header"
"aside main main"
"footer footer footer";
grid-template-columns: 10vw auto auto;
grid-template-rows:50px calc(100vh - 100px - 20px) 90px;
}
.header {
align-items: center;
background-color: #4969f5;
display: grid;
grid-area: header;
padding: 2px;
}
.aside {
background-color: #7042c7;
grid-area: aside;
padding: 15px;
}
.main {
background-color: #53305c;
grid-area: main;
padding: 10px;
}
.footer {
align-items: center;
background-color: #c73814;
display: grid;
grid-area: footer;
justify-content: center;
padding: 15px;
}
</style>
</html>