DC10 control page layout with CSS positioning

Source: Internet
Author: User

CSS Positioning control page layout

Position

Static (statically positioned, default value)

Absolute (absolute positioning)

Out of the document stream, positioned according to the reference object

Relative (relative positioning)

Without leaving the document flow, the reference is the original location

Fixed (stationary positioning)

A special form of absolute positioning, a reference to a browser window

When no width (height) is defined, it can be defined by left right (top bottom)

Locating references

Reference

Window border (default)

Include Block

Include block as anchor element

Their own

Coordinate values

Absolute

Top

Top edge outer wall to inner wall containing block top

Right

Right outer wall to inner wall containing block right

Bottom

Bottom outer wall to inner wall containing block

Left

Left outer wall to the left inner wall of the containing block

Note: The outer wall represents the inner edge of the inner margin.

Relative

Top

Top Edge outer wall to original position top edge outer wall

Right

Right outer wall to the right outer wall of the original position

Bottom

Outer wall of Bottom edge to original position

Left

Left outer wall to left outer wall of original position

Particularity

Absolute

When top right bottom left is not explicitly set, the document stream is not detached, but its size does not affect the containing block

Still affected by the inclusion block position

Only when the left/top is set separately, only the orientation capability of that direction

Positioning Cascade

Z-index

Only affects elements of the absolute relative fixed property

When null/0, remove properties from

Set to negative to hide positioned elements below the document flow object

The anchor element is displayed by default on the document flow object

DC10 control page layout with CSS positioning

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.