-
Notifications
You must be signed in to change notification settings - Fork 0
/
exercicio_06_clipping.html
76 lines (63 loc) · 1.91 KB
/
exercicio_06_clipping.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
71
72
73
74
75
76
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Curso de CSS</title>
<style>
html, body , h1 {
margin:0;
padding:0;
}
html {
background:rgb(254,255,216);
}
article, aside, section, header, footer, nav {
display:block;
}
main {
width:660px;
background-color:rgb(255,255,255);
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
box-shadow: 0 0 10px #666;
margin:10px auto;
padding:10px;
position: relative;
height: 580px;
}
#principal {
background-color:rgb(240,240,240);
border:1px dotted #666666;
margin-top:20px;
position: relative;
height: 450px;
}
section {
height:150px;width:150px;padding:10px;
}
.janela1 {
background-color:rgb(153,204,51);
position:absolute;
top:100px;left:40px;
clip: rect(0 170px 170px 0);
}
.janela2 {
background-color:rgb(255,204,51);
position:absolute;
top:50px;left:15px;
}
</style>
</head>
<body>
<main>
<h1>Clipping</h1>
<p>Each property serves a specific purpose. Understanding that purpose is the key to mastering CSS-based layouts.</p>
<div id="principal">
<section class="janela1">
Verde
<section class="janela2">Amarelo</section>
</section>
</div>
</main>
</body>
</html>