<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>flex open to the right</title>
<style>
.containergk1 {
display:flex;
flex-direction: row; /* column; */
/* flex-direction: column-reverse; /* row-reverse; */
flex-wrap: wrap; /* nowrap; wrap-reverse; */
justify-content: center;
/* justify-content: space-around; /* displays the flex items with space between the lines */
/* justify-content: flex-end; /* aligns the flex items at the end of the container: */
align-items: center; /* aligns the flex items in the middle of the container: flex-end; stretch; baseline; */
align-content: space-between; /* displays the flex lines with equal space between them: space-around; stretch; center; flex-start; flex-end;*/
text-align: center;
}
.flex-container_center_middle {
display: flex;
width:100%;
height: 300px;
justify-content: center;
align-items: center;
}
.datagk1 {
width:300px;
height:30vh;
border:1px #AF0 solid;
}
@media (max-width: 1000px) {
.containergk1 {
flex-direction: column;
}
.datagk1 {
width:100%;
}
}
</style>
</head>
<body>
<div class="containergk1">
<div class="datagk1"></div>
<div class="datagk1"></div>
<div class="datagk1"></div>
</div>
<p>Source: https://www.w3schools.com/css/css3_flexbox_container.asp</p>
</body>
</html>