-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex33.html
43 lines (37 loc) · 1.04 KB
/
index33.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flexbox</title>
<style>
.flex-container {
display: flex;
background-color: dodgerblue;
}
.flex-container > div {
background-color: #f1f1f1;
margin: 10px;
padding: 20px;
font-size: 30px;
}
.flex-container > p {
background-color: salmon;
margin: 20px;
padding: 10px;
font-size: 20px;
}
</style>
</head>
<body>
<h1>Membuat Flex Container</h1>
<div class="flex-container">
<div>1</div>
<div>2</div>
<div>3</div>
<p>ini adalah percobaan</p>
</div>
<p>A flexible layout must have a parent element with the <em>display</em> property set to <em>flex</em>.</p>
<p>Diret child elements(s) of the flexible container automatically becomes flexible items.</p>
</body>
</html>