Home > Article > Web Front-end > CSS Layout Floating (2)
In the previous article, I wrote about two-column floating with fixed width on the left (right) side and automatic scaling on the right (left) side. This article will talk about the issue of three-column floating. As mentioned before, two-column floating is the basis for other multi-column floating. After understanding the principle of two-column floating, multi-column floating of three or more columns becomes simple.
The middle left side has a fixed width, and the right side is adaptive:
Because the left side and the middle side are both fixed width, and only the right side has an adaptive width, so this three-column float is the same as the left side of the two-column float. The same principle applies to the adaptive right side of the fixed width. The HTML structure code is as follows:
< ;head>