1<style>
2#datadiv {
3 width: 200px;
4 height: 200px;
5 border: 1px solid #c3c3c3;
6 display: flex;
7 flex-wrap: wrap;
8}
9
10#datadiv div {
11 width: 50px;
12 height: 50px;
13}
14</style>
15</head>
16<body>
17
18<h1>The flex-wrap Property</h1>
19
20<div id="datadiv">
21 <div style="background-color:red;">A</div>
22 <div style="background-color:green;">B</div>
23 <div style="background-color:yellow;">C</div>
24 <div style="background-color:blue;">D</div>
25 <div style="background-color:cyan;">E</div>
26 <div style="background-color:indigo;">F</div>
27</div>
1The flex-wrap property specifies whether the flexible items should wrap or not. Note: If the elements are not flexible items, the flex-wrap property has no effect.