Home >Web Front-end >HTML Tutorial >Css Div layout learning (1)?Div layout basics_html/css_WEB-ITnose
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: