Css.3 Box

Source: Internet
Author: User

Box

Box size

Width,height

By default, a box is sized to fit the content and varies depending on the content. If you customize the size of the joint venture, you need to use the width and height properties.

The most common way to specify the size of a box is pixels, percentages, or EM values.

Width limit

Min-width,max-width

The min-width property specifies the minimum width that a box can display in a narrow browser window

The max-width property specifies the maximum width that a box can stretch when the browser window is wide

Height limit

Min-height,max-height

As with limiting the width of a joint venture, you can also limit the size of a box on a page.

The height limit can be accomplished using the min-height and max-height properties.

Content Overflow

Overflow

hidden: To hide the contents of a joint venture space

Scroll: Add a scroll bar to the box

Border width

Border-width

The Border-width property is used to control the width of the border. This property can be a pixel value,

Also, and to select one of the following values:

Thin

Medium

Thick

The attribute value cannot be used as a percentage.

Each border size can be controlled by the following 4 properties:

Border-top-width

Border-right-width

Border-bottom-width

Border-left-width

Border Style

Css.3 Box

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.