Sort out the layout scheme ideas and layout scheme ideas

Source: Internet
Author: User

Sort out the layout scheme ideas and layout scheme ideas

Previously, I wrote a blog Based on Netease's front-end micro-major courses.

Horizontal center plan

Vertical center Scheme

Horizontal and vertical center plan

 

At last, the teacher summarized the ideas proposed by the "solution ".

For example

Display: flex

Display: table

Display: inline-block

Display: table-cell

Vertical-align: middle

Justify-content: center

What are the characteristics of such attributes and values?

① Be sure to have a good grasp of these features.

② Then, the question is decomposed. For example, when we first talked about "horizontal center", the demand at the time was "the element width inside is not necessarily, and the element width outside is not necessarily ", then we can split this requirement into two parts,

Step 1: implement the elementsWidth follows content

Step 2: Achieve horizontal center

Css features and requirements.

Related Article

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.