display 속성이 table-cell이면 calc함수 안먹나요?
본문
저는 table-cell 속성이면 100% 넓이를 줘도 당연히 양옆의 셀을 감안해서 넓이가
늘어나겠거니 했는데 그냥 다 덮어버리더군요.
해서 calc도 해보니까 안먹던데 어떻게 해야될까요?
nav부분입니다.
#header {
display: table;
height: 100px;
}
#logo {
width: 250px;
background-color: #578fff;
display: table-cell;
vertical-align: top;
}
#nav {
width: calc(100%-450px);
background-color: #F9F;
display: table-cell;
vertical-align: top;
}
#login {
width: 200px;
background-color: orange;
display: table-cell;
vertical-align: top;
}
답변을 작성하시기 전에 로그인 해주세요.