Introduction to DIV + CSS layout-page layout and planning
Source: Internet
Author: User
I haven't written something seriously for a long time. Recently, some people have asked me some questions about DIV + CSS layout. In fact, it is still caused by lack of entry-level layout. So the next article will help you get started...
There are many terms in web page creation, such as CSS, HTML, DHTML, and XHTML. In the following article, we 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 deploy it. The design layer is shown below:
According to the figure above, I drew another actual page layout diagram to describe 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.