Css html element layout and Display attributes

Source: Internet
Author: User

1. HTML element Classification

2. Default display of HTML element layout 2.1 (the width and height attributes are not added)

2.2 added the display of the width attribute 2.2.1 block-level element (div) added the width attribute 2.3 conclusion

When setting the width attribute of a block-level element, the browser's width attribute value changes without affecting the layout of embedded elements in the block-level element) it is affected by the parent block-level elements.

3. CSS display attributes

Or

3.1 Main Value: 3.2 display: block demonstration

Input3 is set:

3.3 display: inline

Div is set:

 

Series of articles =================================================== ====

Related Article

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.