Home>Article>Web Front-end> css block level formatting context BFC
This article mainly introduces the css block-level formatting context BFC, which has certain reference value. Now I share it with everyone. Friends in need can refer to it
BFC rendering area
This area is created by an HTML element. The following elements will create a BFC area inside it
1. Root element
2. Floating and absolutely positioned elements
3. Overflow is not equal to the visible block box
The effect of creating a BFC is applied to its child elements. They are independent of different BFC areas, and they do not interfere with each other when rendering
Create the BFC element and isolate it The connection between internal and external, internal rendering will not affect the external
Specific rules:
1. Create a BFC element, its automatic height needs to be calculated for floating elements
2. When creating a BFC element, its border box will not overlap with floating elements. The value will also be automatically created. BFC
The above is the entire content of this article. I hope it will be helpful to everyone's learning. For more related content, please pay attention to the PHP Chinese website!
Related recommendations:
Introduction to creating striped background styles for Web pages using CSSIntroduction to CSS3 positioning and floating
The above is the detailed content of css block level formatting context BFC. For more information, please follow other related articles on the PHP Chinese website!