
프리랜서로서의 퍼블리싱은 처음인 나에게.. footer의 시련이 찾아왔다.!
position: absolute, fixed 둘다 해봤지만 contents의 길이가 길어지면 소용이 없었다.
위의 position속성은 모달이나 툴팁 요론쪽에 더 적합한 속성인듯하다.
<div class='contents'></div>
<div class='footer'></div>
위의 상황이라면
html, body {
width: 100%;
height: 100%;
}
.contents {
height: auto;
min-height: 980px;
padding-bottom: 280px;
background-color: #f2f7ff;
}
.footer {
background-color: #0a1630;
height: 280px;
position: relative;
transform: translateY(-100%);
}
위와같은 css를 구성하면된다.