Home > front end >  The inside of the box element floating and box margin - top negative problems
The inside of the box element floating and box margin - top negative problems

Time:11-28

Do today met a problem page haven't figured out what is the reason, bosses want to ask all of you!
Code screenshots are as follows:


A, b box medium for two floating element,
To b, margin - top of the box - 80 px, why the inside of the box the floating element met a box in the floating element, did not move on?
And out of the box b content area

CodePudding user response:

Floating problem, you write that will cause the high collapse

CodePudding user response:

Probably give you change the
. Clearfix {
Content: "';
Display: table;
The clear: both;
}















CodePudding user response:

You can try to use positioning
  • Related