HTML uses whitespace to align the aligned (   )

Source: Internet
Author: User

Characters and HTML entities Description and description

 

This is the space that we use the most, that is, the space key to create spaces. In HTML, if you use the SPACEBAR to generate this space, the space will not accumulate (only 1). To use an HTML entity representation to accumulate. For the sake of memory, I always make this space "Sp–space" (NB), although it is not really cool. This space occupies a width that is strongly influenced by the font. There are minor damage in the Inline-block layout, which is an essential element in the two-pronged layout. It's a little thing that people love and hate.

 

The blank is of unknown scientific name. For the sake of memory, we might as well call it "evil (e N-ian) space". This space inherits the character of the space family: transparent drip! This space has a fairly robust feature, that is, it occupies a width of exactly 1/2 Chinese width , and is largely unaffected by the font.

 

The blank is of unknown scientific name. For ease of memory, we might as well call it "demon (e M-o) space". This space also inherits the character of the space family: transparent drip! This space also has a fairly robust feature, that is, it occupies a width of exactly 1 Chinese width , and basically unaffected by the font.

 

The blank is of unknown scientific name. We may call it "thin space", that is, the space is relatively thin, thin body, occupy a relatively small width. I'm not used to this thing at the moment, and it's going to be a bit of a mass actor's addiction.

One of the   and  , because of a certain super-like features, so that they can board the Web stage! What characteristics? The above table is shown in bold, 1. transparent; 2. The width is exactly the same as the Chinese 1:2 and 1:1 relationship, so, some Chinese typesetting alignment what, directly can use these two space adjustment, such as:
<ul>
<li class= "Li" > Surname &emsp;&emsp; Name: <input type= "Text"/></li>
<li class= "Li" > Hand &ensp; &ensp; No: <input type= "Text"/></li>
<li class= "Li" > E-mail: <input type= "Text"/></li>
</ul>

Results easy to achieve the 2 words/3 words/4 words of the Chinese equal-width two-way alignment effect:

HTML uses whitespace to align the aligned (&nbsp;&emsp;&ensp;)

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.