-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (60 loc) · 1.37 KB
/
index.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
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Função CALC - CSS</title>
<style>
* {
margin: 0;
padding: 0;
border: none;
box-sizing: border-box;
}
html,
body {
background-color: #151515;
height: 100vh;
width: 100%;
}
main {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
}
main > img {
width: 150px;
}
main > div.content {
display: flex;
flex-direction: row;
justify-content: space-between;
background-color: #fed636;
width: calc(100% - 158px);
}
main > div.content > div {
background-color: #4b5;
width: calc(100% - 100px - 150px - 16px);
}
main > div.content > div:first-child {
background-color: #d56;
width: 100px;
}
main > div.content > div:last-child {
background-color: #d95;
width: 150px;
}
</style>
</head>
<body>
<main>
<img src="https://avatars3.githubusercontent.com/u/6491925?v=4" alt="" />
<div class="content">
<div></div>
<div></div>
<div></div>
</div>
</main>
</body>
</html>