Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout

青灯夜游
Release: 2020-12-14 18:06:38
forward
2966 people have browsed it

This article will introduce to you three common CSS page layouts: double flying wing layout, adhesion layout, and left and right column layout. I hope it will be of some help to you.

Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout

(Recommended tutorial:CSS video tutorial)

1. Left and right column layout

1. The code is as follows

    两列布局   
left
lzprightrightrightrightrightrightrightrightrightrightrightrightrightright
rightrightrightrightrightrightrightrightrightrightrightrightrightright
rightrightrightrightrightrightrightrightrightrightrightrightrightright
rightrightrightrightrightrightrightrightrightrightrightrightrightright
Copy after login

The effect is as follows:

Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout

2. Necessary instructions

The outer container con if For a fixed width, the overflow: hidden; of the right element is necessary, otherwise the font in the rig will not be in the rig.

If the con width of the outer container is 100%, or the default, the overflow: hidden; of the right element is optional, and the page will not be affected.

2. Adhesion layout

1. The code is as follows:

     粘连布局   
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
main
mlzpain
Copy after login

Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout

3. Double flying wings The layout

    双飞翼三列布局  

middle

middle

middle

left
right
Copy after login

has the following effect:

Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout

For more programming-related knowledge, please visit:Programming Teaching! !

The above is the detailed content of Three common page layouts in CSS: double-wing layout, glue layout, and left and right column layout. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!