해결된 질문
작성
·
321
·
수정됨
0
.wapper__left에 208px을 주고 left__body랑 left__header에 100%를 줬는데 왜 body_header은 왜 자꾸 206px이 될까요?
그래서 자꾸 margin을 주면 회색 상자랑 line이랑 2px씩 차이가 나서 안맞아요
답변 1
0
*{
box-sizing: border-box;
margin: 0px;
}
.background {
width: 1024px;
height: 600px;
background-image: url("../images/background.png");
padding: 20px 0 0 20px;
}
.outerbox{
width: 808px;
height: 544px;
background-image: url("../images/outerbox.png");
}
.wrapper{
display: flex;
flex-direction: row;
padding: 32px 0px 0px 32px;
}
.wrapper__left{
width: 208px;
height: 472px;
display: flex;
flex-direction: column;
}
.wrapper__left__header{
width: 100%;
height: 30px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.today{
font-size: 9px;
}
.wrapper__left__body{
width: 100%;
height: 100%;
border: 1px solid gray;
border-radius: 15px;
background-color: white;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 30px 0px 30px;
}
.left__body__header{
width: 100%;
display: flex;
flex-direction: column;
}
.left__body__header__gray{
width: 148px;
height: 133px;
background-color: gray;
}
.left__body__header__line{
border-top: 1px dotted black;
margin: 12px 0px;
}
.left__body__profile{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.profile__detail{
font-size: 9px;
color: #999999;
margin-bottom: 10px;
display: flex;
flex-direction: row;
}
.left__body__footer{
width: 100%;
margin-bottom: 57px;
display: flex;
}
.footer__feel{
font-size: 11px;
line-height: 15px;
color: #999999;
}
.wrapper__right{
width: 524px;
height: 472px;
background-color: blueviolet;
}