HTML, CSS - footer fixed (foot 하단 고정 시키기)

footer fixed

꽤나 자주 쓰이는 부분인데 항상 할 때 마다 애를 먹었다. 그래서 기억해두려고 한다. 하단 푸터가 스크롤과 상관없이 계속 밑에 고정이 되어있게 하는 방법 !

How to fix footer location(bottom)

HTML

<footer> footer fix </footer>

CSS

footer{ position:fixed; 
  left:0px; 
  bottom:0px; 
  height:60px; 
  width:100%; 
  background:grey; 
  color: white; }

Result

enter image description here

enter image description here

댓글

댓글 쓰기

이 블로그의 인기 게시물

5 Whys - 문제의 근본 원인을 파악하는 방법

어드민 유저 권한 시스템 설계(Admin user authority system design)

Start AWS Cloud9 (3) - Start Ruby on rails(AWS c9 시작하기 - 루비 온 레일즈 시작하기)