1. Page Layout and planning
There are many terms in web page creation, such as CSS, HTML, DHTML, and XHTML. In the followingArticleWe will use some basic knowledge about html. Before you start this tutorial, make sure that you have a certain HTML base. Next we will start to use Div + CSS for webpage layout design step by step.
The first step of all designs is to design and design a good idea. In general, image processing software such as PhotoShop or fireworks (PS or fw) needs to be used to make a simple layout of the interface, the following figure shows the interface layout I have designed.
Next, we need to plan the page layout based on the Concept diagram. After carefully analyzing the figure, we can easily find that the picture is roughly divided into the following parts:
1. The top part includes the logo, menu, and a banner image;
2. The content can be divided into the sidebar and subject content;
3. the bottom part includes some copyright information.
With the above analysis, we can easily layout it. Our design layer is as follows:
According to this, I drew another actual page layout diagram to illustrate the nested relationship at the lower layer, which makes it easier to understand.
The DIV structure is as follows:
│ Body {}/* This is an HTML element, which I will not describe */
Container # container {}/* Page-layer container */
Response # header {}/* page header */
Response # pagebody {}/* Page subject */
│ Navigation # sidebar {}/* sidebar */
│ Entity # mainbody {}/* subject content */
Footer # footer {}/* at the bottom of the page */
Now, the page layout and planning have been completed. What we need to do next is to start writing HTML code and CSS.