<body>
<div class="container">
<div class="box">
div 1
</div>
<div class="box div2-location">
div 2
</div>
<div class="box">
div 3
</div>
</div>
</body>
.container{
display: flex;
justify-content: space-between;
}
.box{
background-color: black;
height: 200px;
width: 200px;
color: white;
}
.div2-location{
margin-left: auto;
margin-right: 10px;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>replit</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<div class="box">
div 1
</div>
<div class="box center">
div 2
</div>
<div class="box end">
div 3
</div>
</div>
</body>
</html>
.container{
display: flex;
justify-content: space-between;
height: 300px;
}
.box{
color: white;
background-color: black;
width: 100px;
height: 100px;
}
.center{
align-self: center;
}
.end{
align-self: flex-end;
}
https://Chapter-5-munje2.roadzmoon76.repl.co
풀다가 자러감