[Reprinted] floating demos we cleared together in those years

Source: Internet
Author: User

 

Return to the article: What is the difference between the closed floating and the cleared floating in those years. main: Sorry. In modern browsers, I cannot lift warp (float: left ). side: I also float (float: left ). footer: I set clear: Both Clear floating Although the location is correct, the height of warp remains unchanged, which is a bit uncomfortable. main: warp is closed and floating, so footer does not need to clear the floating (float: left ). side: I also float (float: left ). footer: This warp outbreak passed. clearfix already Closed floating (1) Add additional labels. main {float: Left ;}. side {float: Right ;}. footer2) use the BR tag and its own HTML attributes. main {float: Left ;}. side {float: Right ;}
. Footer3) parent element overflow: hidden. main {float: Left ;}. side {float: Right ;}. footer6) set the parent element to display: Table. main {float: Left ;}. side {float: Right ;}. footer

From: http://www.iyunlu.com/demo/enclosing-float-and-clearing-float/index.html

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.