x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
.flex-container {
7
display: flex;
8
display: flex;
9
justify-content: space-around;
10
justify-content: space-around;
11
width: 400px;
12
height: 250px;
13
background-color: lightgrey;
14
}
15
16
.flex-item {
17
background-color: cornflowerblue;
18
width: 100px;
19
height: 100px;
20
margin: 10px;
21
}
22
</style>
23
</head>
24
<body>
25
26
<div class="flex-container">
27
<div class="flex-item">flex item 1</div>
28
<div class="flex-item">flex item 2</div>
29
<div class="flex-item">flex item 3</div>
30
</div>
31
32
</body>
33
</html>