There are several ways to fix footer at the bottom of the page.

Source: Internet
Author: User

There are several ways to fix footer at the bottom of the page.

1 <div class = "header"> <div class = "main"> </div> 2 <div class = "container"> <div class = "main "> </div> 3 <div class =" footer "> <div class =" main "> </div>

If the content of the subject is too short to support the browser, footer will move on, which affects the page very much. It is a big bug. I have searched many ways to sort out several methods that footer is fixed on, for future reference. (You are welcome to add this item .)

The preceding layout is commonly used for writing pages to individuals.

Note:. main {

Width: 1050px;

Margin: 0 auto;

Height: auto;

}

1. This is the css that has just been used. It can achieve the effect, but the content of the subject is displayed in the form of a scroll bar regardless of the size of the browser footer.

. Footer {

Position: fixed;

Bottom: 0;

Left: 0;

}

2. Waiting for sorting .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.