Home > Web Front-end > HTML Tutorial > div css: layout three (more) sections in one row_html/css_WEB-ITnose

div css: layout three (more) sections in one row_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 12:31:25
Original
1511 people have browsed it

Recently, a friend asked: How can I use divs to implement three sections on my webpage?
The following is a brief description of the div layout of the three sections:

The idea is: 1. First define the red DIV "1" in the picture.

2. Then in Set two green DIV "2" in the red frame (define the two green DIVs with CSS, one on the left and one on the right---CSS: float:left; float:right;).

3 .Then put two blue DIV "3" in the green DIV on the right (define the two blue DIVs with CSS, one on the left and one on the right---CSS: float:left; float:right;).
In the same way, if there are more sections, just use the same layer-by-layer nesting method!

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template