HTML CSS + div for overall layout1. Technical objectives:
Develop Web pages that meet the standards
Understanding the Box model
Achieve DIV+CSS Overall layout
2, what is the standard?W3c:world Wide web Consortium, www AllianceFunction: Responsible for t
Usually we use the CSS layout is left and right center, the classic CSS syntax is as follows:
body{
margin:0;
padding:0;
width:100%;
height:100%;
}
div{
margin:0 Auto;
width:500px;
Height:auto;
}
The above is the classic left and right center of the CSS, then like the login
name: Wrap (jacket, outermost), header (header, head), NAV (navigation bar), menu, title (column headings, general mates H1\h2\h3\h4 tags), Content (contents area), footer (footer, bottom), logo (logo, can be used with H1 tags), banner (banner, general at the top), copyright. Others can be used selectively depending on their needs.DIVCSS5 advice: The main, important, outermost box is named after the "#" (pound) selection symbol, and the others are ".
. Reduce traffic fees: The page size becomes smaller and the browsing speed becomes faster, which makes it the biggest advantage for some websites that control host traffic.
Disadvantages:
1. Difficult Development: (1) the development of Div CSS requires a high level of technology. Although it is not highly difficult, it is much more complicated than table positioning, even for website design experts, prob
Here are some tips to add to favorites and study them. Non-webpage designers do not want to watch. Otherwise, you will be dizzy... :}
CSS compatibility skills
1. Setting padding for Div under FF will increase the width and height, but IE will not. (available! Important solution)
2. center problem.
1). Vertical center. Set line-height to the same height of the current D
the label is made, in. NET to develop the user's own definition of the control, then in the label is also able to develop their own definition tag library, and similar to the drop-down list box, etc., can be encapsulated.Don't know if there's any other way to implement user control, or label encapsulation? Develop your own definition tags check out the good implementation. The introduction of the development jar into the implementation of a number of
* {margin:0px;padding:0px;}. Top{width:100%;Height:50px;Background-color:Antiquewhite;}. Top_content{width:75%;Height:50px;margin:0px Auto;/*up and down for 0, left and right adaptive*/Background-color:Aqua;}. Body{margin:20px Auto;width:75%;Height:1500px;Background-color:Aquamarine;}. Body_img{width:100%;Height:400px;Background-color:Beige;Background-image:URL (http://images.cnblogs.com/cnblogs_com/ttzzyy/1076163/t_8l7byyh7pd%[email protected]]2v8h.png);}. Body_content{width:100%;Height:1100px;
manufacturer. Screenshot thumbnails. FAQs FAQ. Keyword Keywords. Blog Blog. Forum Forum CSS file naming instructionsMaster.css,style.css the mainMODULE.CSS ModuleBASE.CSS Basic Common useLayout.css layouts, SuitesTHEMES.CSS ThemeCOLUMNS.CSS columnFont.css text, FontForms.css formMEND.CSS PatchPRINT.CSS Printing CSS name Other Description: DIV+
Saying. There are some inexplicable excitement about blogging ... These days have been crowded time busy catching beef brisket video, late CSS box. Please understand. CSS box, the beginning sounds a bit tall on the bright.Later learned, found that the facts are very easy to understand. It's very handy in terms of funct
Whether the css floating box is separated from the document stream analysis, css floating
Before learning about floating attributes, let's first take a look at the display attributes in html.
Commonly used display attributes include inline, block, and inline-block.
Inline means inline. Common html tags, such as span, font, a, B, and em, are inline elements.
The
, but will cover middle content of the ieft, to pull out middle content, so in the peripheral container plus padding:0 210px5) Middle content pulled out, but left also followed out, so to restore, the left to use relative positioning left:-210px6) In the same vein, right is pulled to the rightmost side of the middle line, using margin-left:-210px,right:-210px
5. Must-see CSS layout tips to share
In order to avoid the bad experience of left and right s
How do I use CSS to center the div display? For everyone to do a simple code, the use of CSS to achieve a div horizontal center display, the need for friends can learn from reference.
The main CSS code needed is two, one is text-align:center (content Center), the other is m
This article uses the box legend, the CSS box (box mode) analysis, for the learning CSS reader to establish a clear model.
The box pattern defined by the consortium is as follows:
Width and height define the widths and heights o
CSS + DIV + JQuery video summary, divjquery
I have learned CSS and DIV in niujiao, CSS + JS encapsulation in JS, And I have reviewed it again here. It also serves as an example to check for missing content, it's a more systematic review.
The core content of
, regardless of what type of box it was generated in the normal flow.FixedThe element box behaves like the position is set to absolute, but its containing block is the window itself.Here's a summaryNormal div--ground follows ground flow patternFloating div--air follows the air flow pattern is the same heightPositioning
; border-top:30px solid transparent; border-bottom:30px solid transparent; border-right:30px solid yellow; }/ * arrow Right */.arrow-right { width:0; height:0; border-top:50px solid transparent; border-bottom:50px solid transparent; border-left:50px solid Green;}After the OK code is sorted together, the effect is probably this:Well the principle we understand, then we have to combat it, to implement a div
Box model of HTML and CSS, cssbox
As the last article in the attribute article, this article describes the key-Box model of HTML and CSS ). the key to understanding the Box model is the margin and padding attributes. Correct understanding of these two attributes is also the
the page loading speed, as well as the maintenance of the site.
Use Div to match the reason of CSS, the core of CSS is "box model", and no label can better than div interpretation "box model" essence, table structure is t
representation, so that you can only consider the structure or performance when writing. I usually write the structure first and then CSS. My colleagues prefer to write CSS first and then structure. I personally think this is just a habit and there is no big difference.
The structure of Div + CSS can be clearly writ
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.