[CSS layout. 4] Five CSS layout types

Source: Internet
Author: User

Overview of five types of CSS layout

There are five basic layout positioning types available:

* Elastic Layout
-The overall width and the values of all columns are written in EM units.
This should enable the layout to be scaled using the specified basic font size of the browser. For users with poor eyesight, this may be more attractive and easier to access, because the Bar Width will become wider,
Show more comfortable and readable row lengths in any size. As the overall width scales, your design must allow this width.
* Fixed Layout
-The overall width and values of all columns are written in pixels. The layout is located in the center of the user's browser.
* Fluid layout
-The overall width and values of all columns are written as percentages. The percentage is calculated based on the size of the browser window.
* Hybrid Layout
-Hybrid layout combines two other types of layout-elasticity and fluid. The total width of the page is 100%, but the sidebar value is set to em.
* Absolute positioning Layout
-Floating content is used for all the outer columns of the preceding layout. The absolute positioning layout is exactly as shown in its name.
-Exclusive columns with absolute positioning. You must remember that when using these la s, The Sidebar will "present the document Process", so there may be some inappropriate results (for example,
The footer may "invisible" where the sidebar ends and contains less content in the primary content area than the footer of the sidebar ).

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.