반응형
이곳에서 FLEX로 게임을 할 수 있어요.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Flex</title>
<style>
html,body{
height: 100%;
}
.father{
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-direction: row;
height: 100%;
flex-wrap:wrap;
}
.box{
background-color: red;
width: 200px;
height: 200px;
border:1px solid black;
display: flex;
justify-content: center;
align-items: center;
color:white;
}
</style>
</head>
<body>
<div class="father">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
<div class="box">4</div>
<div class="box">5</div>
<div class="box">6</div>
<div class="box">7</div>
<div class="box">8</div>
<div class="box">9</div>
<div class="box">10</div>
</div>
</body>
</html>
출처 : 노마드 코더 깃 허브: https://github.com/nomadcoders/kakao-clone-examples/blob/master/05-flex/index.html
반응형
'2020 > CSS' 카테고리의 다른 글
CSS Transition (0) | 2020.02.16 |
---|---|
css states(hover, active, focus, visited) (0) | 2020.02.16 |
PSEUDO SELECTOR (0) | 2020.02.16 |
NTH TEST SITE (0) | 2020.02.16 |
CSS POSITION (0) | 2020.02.16 |