css| Planning | tutorials | Getting Started | page
one, page layout and planning
For a long time did not seriously write something, think of these recent times often have friends asked me about the layout of div+css, in fact, in the final analysis is due to no introduction. So the next article will lead you to the introduction of the bar ...
In Web page production, there are many terms, such as CSS, HTML, DHTML, XHTML, and so on. In the following article we will use some basic knowledge about HTML, and before you learn this introductory tutorial, make sure you have a certain HTML base. Let's start with a step-by-step use of DIV+CSS for Web layout design.
All the design first step is the idea, the idea is good, in general also need to use Photoshop or fireworks (hereinafter referred to as PS or FW), such as image processing software will need to make the interface layout simple structure, the following is my idea of the interface layout diagram.
Below, we need to plan the layout of the page according to the idea map, analyze the diagram carefully, we can not find that the picture is roughly divided into the following parts:
1, the top part, including the logo, menu and a picture of banner;
2, the content can be divided into side columns, the main content;
3, the bottom, including some copyright information.
With the above analysis, we can easily layout the design layer as follows:
According to the diagram above, I have drawn an actual page layout diagram to illustrate the nesting relationship of the layer, so it will be easier to understand.
The div structure is as follows:
│body {}/* This is an HTML element, specifically I do not explain the * *
└ #Container {}/* page Layer Container * *
├ #Header {} * * page head * *
├ #PageBody {}/* page body * *
│ #Sidebar {}/* side bar/*
│└ #MainBody {}/* Principal content * *
└ #Footer {}/* Bottom of page * * *
Now that the page layout and planning are complete, all we have to do is 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.