Several ways to page layout of web pages

Source: Internet
Author: User

Basic layout of Web page:

(1) Flow-type layout Fluid

The basic difference between a flow layout and a fixed-width layout is that the size of the site is different for the side units. Fixed-width layouts use pixels, but the flow layout uses a percentage, and the Web page provides a strong plasticity and fluidity. In other words, by setting a percentage, we do not need to consider the size of the device or the width of the screen, you can find a workable solution for each case, and the size of your design will be adapted to all device sizes. Flow layouts are closely related to media queries and optimized style techniques.


(2) Fixed layout

In a fixed layout, the width of a Web page must be specified as a pixel value, typically 960px. In the past, developers found that 960px was best suited as the width of the grid layout, since 960 could be divisible by 3,4,5,6,8,10,12 and 15. Fixed-width layouts are more commonly used in web development today because of the robustness and controllability of this layout. But at the same time there are some disadvantages, fixed width must consider whether the site can be applied to different screen widths.


(3) Flexible layout Elastic

The elastic layout is similar to the flow layout, the main difference is the size unit. The size of the elastic layout is not a pixel or a percentage, but an em or REM, avoids the disadvantage of the PX local at high resolution, and is more flexible relative to% percent, and supports the normal display of browser font resizing and zooming, etc. It takes some time to adapt and it's not easy to convert from other layouts.

(4) Telescopic Flex box

Use the CSS3 Flex series properties for relative layout. Support for rich media and complex typography is very large, but there are compatibility issues.

(5) Response type

Use @media media queries to switch different styles for devices of different sizes and media. Excellent response range design provides a good experience for devices that fit within the range.


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.