If you're familiar with the techniques you need to master div CSS page layouts, here's a good habit that might make your design cycle a little bit shorter.
DIV CSS page layout needs to master the skill summary
Here are eight of the necessary tips
Some time ago to do a small project encountered a way of navigation and then suddenly think of a long time ago saw the shape of the ladder irregular navigation, try to do a bit. The results met a few problems, and then in a colleague's reminder to
a few days in the three columns with CSS layout of the sudden thought of such a method, the idea of their own feel a little crazy, if there is anything wrong in the place please you feel free.
When you need to write a three-column layout, I
Failure Analysis: There are many reasons for the failure of CSS loading, learning worry has also encountered, this may be with your code error, browser, path, code, etc. are related. So in the specific case of specific analysis. Here's a look at the
The exquisite table is the front-end development uses a component, many times we use the complex page style code, produces this kind of table, causes the page the modification and the readability are very poor. It is recommended to use CSS directly
The syntax for CSS paragraph indentation is as follows:
Syntax: Text-indent:〈 value
Allowable value: Length 〉| Percentage
Initial value: 0
The text indent attribute can be applied to block-level elements (P,H1, etc.) to define the number of
In the CSS 2.1 feature that has been supported is counter (), using it, you can easily add serial numbers to page titles, blocks, and other types of pages that appear consecutively. With it, you don't have to limit yourself to using
To achieve
*{margin:0; padding:0;} html,body{width:100% height:100%; body{background: #fff URL (/eg/eg_2014_01_02_14_50.jpg) center no-repeat; let the background picture in the body label vertically centered &L t;h3> label background picture Horizontal
Font-size:1.5em;
In fact, in foreign CSS writing, using EM as a unit is a lot of human considerations, the second is the United States Department of Labor Section508 Act imposed restrictions. So in web design, there are three kinds of metric units
CSS for some special effects to prepare a specific tool, we call it "pseudo class." There are a few of them that we often use, and we'll go into the details of the four pseudo classes that are often used to define the link style, respectively:The
When I want the perfect use: Nth-child or: Nth-of-type is a little dizzy. The more you understand them, the better CSS rules you can write!
In these simple "recipes" (which are actually expressions) I will repeat the use of a simple list and then
Display:inline-block attribute usage in CSS
When you use CSS to implement performance, you will often be exposed to the attributes of Display:inline-block, whether it is the first contact with the Web standards or contact with the standard of a
Background-position:url (picture) horizontal (X) Vertical (Y)
If the horizontal (X) is a positive number, vertical (Y) is a negative number, indicating that the top right corner of the picture is the coordinates, moving each displacement, such as 8-
Paragraph indentation is very practical, with the P tag can play an unexpected effect. The paragraph indent definition in CSS is implemented by text-indent, below its parameters and usage:
Syntax: Text-indent:〈 value
Allowable value: Length or
CSS Layout Common methods Float:none|left|right Value: None: Default value. object does not float left: Text flows to the right of the object Right: Text flows to the left side of the object How it works, look at a row and two columns of
One-line column Body{margin:0px;padding:0px;text-align:center;} #content {margin-left:auto;margin-right:auto;width:400px;width:370px} two rows and one column Body{margin:0px;padding:0px;text-align:center;}
First, check the HTML element for spelling errors, forget the end tag
Even the veteran also often mistook the nested relationship of Div. You can use the Dreamweaver verification function to check for errors.
Second, check the CSS is correct
The table border is displayed by default, and how can you turn it into a virtual line? In fact, as simple as a few style attributes can be done, I hope the following examples to help you
Copy Code code as follows:
Copy Code code as
Syntax for behavior:
Behavior:url (URL) | URL (#objID) | URL (#default #behaviorname)Take value:URL (URL): Specifies the DHTML behavior component (. htc) using an absolute or relative URL address.URL (#objID): The behavior of using binary
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service