Div with CSS Layout bbs homepage (div+css layout) _ Experience Exchange
Source: Internet
Author: User
I divided the Forum homepage into header area, information area, content area, footer area. First with a large div to include these, mainly considering the overall adjustment of the page, for example, to adjust to a widescreen or narrow screen, as long as the setting of this large div can be.
First put the code out, for friends debugging use.
Css:
Copy CodeThe code is as follows:
/* CSS Document */
body{
Background-color: #F5F5F5;
margin:0;
padding:0;
font-family: "Lucida Grande", Verdana, Lucida, Arial, Helvetica, Sans-serif;
font-size:12px;
}
. pagehoder{
width:100%;
Margin:auto;
Background-color: #2662DF;
border-left:2px solid #7197D7;
border-rigth:2px solid #7197D7;
border-bottom:2px solid #7197D7;
}
. header{
border-top:2px solid #7197D7;
height:60px;
Background-color: #B1C3D9;
}
A total of 2,806 articles are currently published
At present, a total of 4,186 registered members
Newly Registered members: Mxjccut
There are 80 users online:: 1 Members, 79 Guests [system Administrator] [Moderator]
Maximum number of people online 2,712 [record time:: 2007-08-13-16:12:34]
Current Online membership: Admin
Powered by Sclbbs author:sclsch@188.com
Pictures can not be uploaded, no way, do not affect learning.
This is the first layout I designed, to understand that the DIV is blocky, the default is the entire row, if you want to design into two or more columns, you can use the Float property, it can float to the left (Float:left), then, if the following div size can be dropped, it will float to the top row, This creates a two-column layout,
Multiple columns and so on. Understand the basic, you can learn in the direction of the fine. Hope to like me as a beginner of the art of the friend Point of Help, do the development of understanding art is also very important, art more not pressure.
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.