
w3.css
고정 푸터
CSS를 사용하여 고정 푸터를 만드는 방법을 알아보자.
고정된 바닥글을 만드는 방법
1단계) HTML 추가
<style> .footer { position: fixed; left: 0; bottom: 0; width: 100%; background-color: red; color: white; text-align: center; } </style> <div class="footer"> <p>Footer</p> </div>
기본 예시
예제 보기참고
W3C School - How TO - Fixed Footer