วิธีการ - แก้ไขส่วนท้าย
เรียนรู้วิธีสร้างส่วนท้ายคงที่/ติดหนึบด้วย CSS
วิธีสร้างส่วนท้ายคงที่
ตัวอย่าง
<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>
เคล็ดลับ: ไปที่บทช่วยสอนเกี่ยวกับตำแหน่ง CSSเพื่อเรียนรู้เพิ่มเติมเกี่ยวกับการจัดตำแหน่ง