The use of CSS Min-width and max-width

Source: Internet
Author: User

One, maximum width attribute max-width


1. In CSS, the maximum width attribute (max-width) is used to define the maximum width display, and the element displays the width defined by the maximum width value when dragging the browser border so that its display range is greater than the maximum width.


2, in the maximum width attribute value, you can use three property values, respectively, auto value, length value and percent value, the syntax structure is as follows


Max-width:auto | Length | Percent

Note: In IE6.0, this property is ignored and the width is displayed with the default value of 100%



Second, minimum width attribute min-width


1. In CSS, the minimum width attribute (min-width) is used to define the minimum width display, and the element displays the width defined by the minimum width value when dragging the browser border so that its display range is less than the minimum width.


2, in the minimum width attribute, you can use three property values, respectively, auto value, length value and percent value, the syntax structure is as follows:

Min-width:aotu | Length | Percent


Note: In IE6.0, this property is ignored and the width is displayed with the default value of 100%



Reference: CSS Min-width and Max-width http://www.studyofnet.com/news/881.html


This article is from the "Learning also leisure" blog, please be sure to keep this source http://studyofnet.blog.51cto.com/8142094/1688381

The use of CSS Min-width and max-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.