Skip to content

Commit 64ae4ae

Browse files
committed
imagem de fundo
1 parent 2df079f commit 64ae4ae

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

exercicios/ex022/fundo001.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
<title>Teste de Imagem de Fundo</title>
7+
<style>
8+
9+
body {
10+
background-image: url('imagens/wallpaper001.jpg');
11+
}
12+
13+
div.quadrado {
14+
display: inline-block;
15+
border: 2px solid black;
16+
border-radius: 10px;
17+
background-color: lightgray;
18+
width: 300px;
19+
height: 300px;
20+
}
21+
22+
div#q1 {
23+
background-color: skyblue;
24+
}
25+
26+
div#q2 {
27+
background-image: linear-gradient(to bottom, yellow, red);
28+
}
29+
30+
div#q3 {
31+
background-image: url('imagens/pattern001.png');
32+
}
33+
</style>
34+
</head>
35+
<body>
36+
<div class="quadrado" id="q1">
37+
38+
</div>
39+
40+
<div class="quadrado" id="q2">
41+
42+
</div>
43+
44+
<div class="quadrado" id="q3">
45+
46+
</div>
47+
</body>
48+
</html>

exercicios/ex022/fundo002.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
<title>Personalização dos fundos</title>
7+
<style>
8+
body {
9+
background-image: url('imagens/pattern001.png');
10+
background-size: 100px 100px;
11+
background-repeat: repeat-y;
12+
/*
13+
background-repeat: repeat-x;
14+
background-repeat: repeat-y;
15+
background-repeat: no-repeat;
16+
*/
17+
}
18+
</style>
19+
</head>
20+
<body>
21+
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)