채택완료
display 속성이 table-cell이면 calc함수 안먹나요?
저는 table-cell 속성이면 100% 넓이를 줘도 당연히 양옆의 셀을 감안해서 넓이가
늘어나겠거니 했는데 그냥 다 덮어버리더군요.
해서 calc도 해보니까 안먹던데 어떻게 해야될까요?
nav부분입니다.
Copy
#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;}
|
답변 2개
답변을 작성하려면 로그인이 필요합니다.