Vertical-align and valign

Source: Internet
Author: User

One of the easiest things in CSS, CSSVertical-alignAttention and th and TD standardsValignAttention is two different things,

Valign is the vertical position of things in an object,

However, vertical-align is not. In fact, it is used on an inline object to determine the vertical position of an inline object (for example, the upper and lower standards ), generally, the IMG mark is not used, which is easier to see than the limit. If the IMG mark is not specified by CSS, the inline object is set.

So how can we keep the object vertical? If only a single line of text needs to be set to "medium" or "simple", you only need to make the line-height wait for the height of an external object:Ie5/MAC), if the block object is to be placed in the middle, it will be troublesome. Compared with the local method, the method of locking is based on the padding of the outer region, if you want to confirm the value, you must add the parameter number, which is very trick. You will not be able to introduce it (in fact, you cannot find @ _ @ In the example @_@).

 

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.