Display attribute block, inline and inline-block

Source: Internet
Author: User

 

NoneThis element is not displayed.

Block: This element is displayed as a block-level element.Line Break.

Inline default. This element is displayed as an inline element, before and after the elementNo line break.

Inline-blockIntra-row block elements. (Newly added value of css2.1)

 

In CSS, inline-block: submits an object as an inline object, but the content of the object is presented as a block object. The Inline object next to it will be presented in the same row.

 

The Inline object next to it will be presented in the same row and spaces are allowed. However, not all browsers currently support this attribute. Only opera and Safari are supported. firefox3 and IE8 are said to be supported. firefox2 and IE can achieve this effect in special ways.

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.