Use Div to automatically wrap a line

Source: Internet
Author: User

I am still too bad on CSS or HTML. Today I found that a line break is generated after div is used. Check carefully that this is a standard and change it to span.

Division is a block-level element that can contain paragraphs, titles, tables, and even chapters, summaries, and remarks.

While span is an element in the row, it does not wrap the line before and after the span. It has no structural meaning and is purely an application style. When other elements in the row are not appropriate, you can use span.

 

An in-Row Element indicates that the content marked by this element does not affect the current structure. It is an application style and can be used as an auxiliary style table;

A block-level element is a block that occupies a single row. It is equivalent to adding a line break before and after each element.

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.