CSS Basics-Layout properties

Source: Internet
Author: User

Display Properties: Sets whether the element is displayed and how it is displayed.

Value: None: Hides the object. Unlike the value of the Visibility property hidden , it does not retain its physical space for objects that are hidden

If display set to none , the float and position attribute definitions will not take effect;

Inline: Specifies that the object is an inline element.

The inline element cannot set width and height.

Block: Specifies that the object is a block element.

The block element cannot be displayed in the same row.

Inline-block: Specifies that the object is an inline block element. (CSS2)

Inline-block: With inline display in line, block can set width and height.

CSS Basics-Layout properties

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.