Position과 좌표 레이아웃
.box {
top : 20px;
left : 30%;
} position : static; /* 기준이 없음 (좌표적용 불가) */
position : relative; /* 기준이 내 원래 위치 */
position : absolute; /* 기준이 내 부모 */
position : fixed; /* 기준이 브라우저 창 (viewport) */.main-title {
color: white;
font-size: 40px;
margin-top: 150px;
margin-left: 38%;
}
.main-content{
color: white;
font-size: 18px;
text-align: center;
}
.main-button {
padding: 15px;
font-size: 20px;
background: white;
border : none;
border-radius: 5px;
position: relative;
top: 50px;
left: 420px;
}
Last updated