Three div left floating not on the same line, floating right in the same row solution

Source: Internet
Author: User

A few days ago when writing code to find a problem, the general description of the problem is as follows:

In a large div, the same line has three small div, when three small div are floating to the left, there will be a newline problem, all floating to the right on the same line.

The way to solve this problem is to clear the float at the head and tail of the three div respectively. such as <div style= "Clear:both;" ></div>

<div class= "Copyright" >        <div style= "Clear:both;" ></div>      //removal of floating                <div class= "Copyright_content_left" >            ...         ... </div><!--Copyright_content_left End--        <div class= "copyright_content" >             ...............         </div><!--copyright_content End--        <div class= "Copyright_content_right" >             ...............         </div><!--Copyright_content_right End--
<div style= "Clear:both;" ></div> //clear Floating </div>

Three div left floating not on the same line, floating right in the same row solution

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.