Why does CSS need to set minimum width and maximum width, and what is the minimum width and maximum width?

Source: Internet
Author: User
Set minimum and maximum width, mainly to prevent page deformation
For example, if the width of a page is set to a percentage, then the width of the page depends on the width of the browser
However, if the width of the browser is too small, the page will deform, for example,
You do a percentage set of pages, and the browser window width of the client is reduced to 100px width (or the display resolution is too small)
So if you don't have a minimum width on your page, you can think about what your page will be like, but if you add one:
min-width:780px; The minimum width of the words
Then, when the browser width is 100px, your page will still be perfectly displayed without collapsing ...

Similarly, the maximum width of max-width is also true
Now most of the display is widescreen, if you do not want your page full screen or the interval between the modules is too large, you can add a maximum width to limit.

Above......

Why does CSS need to set minimum width and maximum width, and what is the minimum width and maximum width?

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.