Skip to content

Commit 162fe8f

Browse files
committed
Felxbox flex-basis
1 parent 78ff58b commit 162fe8f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

exercicios/ex028/flex009/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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>Flexible Box</title>
7+
<style>
8+
div.conteiner {
9+
background-color: lightsalmon;
10+
11+
display: flex;
12+
flex-flow: row wrap;
13+
14+
}
15+
16+
div.item {
17+
background-color: lightskyblue;
18+
border: 1px solid black;
19+
text-align: center;
20+
flex-basis: 150px;
21+
22+
}
23+
</style>
24+
</head>
25+
<body>
26+
<div class="conteiner">
27+
<div class="item">A</div>
28+
<div class="item">Outro conteúdo</div>
29+
<div class="item">C</div>
30+
<div class="item">COnteúdo um pouco maior</div>
31+
<div class="item">E</div>
32+
<div class="item">COnteúdo maior ainda, que vai ocpupar mais espaço.</div>
33+
<div class="item"> G</div>
34+
35+
</div>
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)