์ฒ์์ ์์ํ ๋, boder-box๋ก ์ ์ฒด css๋ฅผ ์ ํ๋ ์ด์ ๋ฅผ ์์๋ค.
flex-direction: row ์ column ๋น๊ต
flex-wrap: nowrap ์ wrap ๋น๊ต
justify-content: center ์ ... ๋น๊ต
align-items: center
flex:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>๊ณ์ฐ๊ธฐ</title>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="calculator"></div>
</body>
</html>
* {
margin: 0;
padding: 0;
border: 0px;
box-sizing: border-box;
font-family: monospace, cursive;
color: #000;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
border: 1px solid red;
height: 100vh;
}
.calculator {
width: 350px;
height: 500px;
border: 1px solid blue;
}