Home >Web Front-end >HTML Tutorial >Css Div layout learning (1)?Div layout basics_html/css_WEB-ITnose

Css Div layout learning (1)?Div layout basics_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:33:021094browse

In the previous series (Css basic learning? Index) we introduced the basic properties and usage of Css, and we will start to explain some content of Css Div layout from now on. Everyone, get ready, we are about to start the layout journey. If you are not very familiar with CSS, you can read some of my previous articles.

If we want to layout CSS, float is the most critical attribute. Floating allows your block elements to not obey the layout characteristics of element flow. If floating is not used, the elements will be arranged one after another. The float attribute has three values: left, right, and none, and we will use these values ​​later. We will use examples to illustrate the properties of layouts.

Let’s make an html file to prepare for the following explanation:

Masthead
Content
Statement:
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