Skip to content

Commit cdcac64

Browse files
committed
atualizei ex022
1 parent ce5009f commit cdcac64

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

exercicios/ex022/fundo007.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<style>
7+
#container {
8+
background-image: url(imagens/target001.png);
9+
background-size: 100% 100%;
10+
position: relative;
11+
height: 96vh;
12+
background-color: purple;
13+
padding: 10px;
14+
}
15+
16+
#conteudo {
17+
background-image: url(imagens/target001.png);
18+
background-size: 100% 100%;
19+
20+
position: absolute;
21+
height: 200px;
22+
width: 400px;
23+
background-color: yellow;
24+
25+
left: 50%;
26+
top: 50%;
27+
28+
transform: translate(-50%, -50%);
29+
}
30+
</style>
31+
<title>Alinhamento vertical</title>
32+
</head>
33+
<body>
34+
<section id="container">
35+
<article id="conteudo">
36+
37+
</article>
38+
</section>
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)