Get to know Vertical-align

Source: Internet
Author: User

Ashamed to say, as if he had just used vertical-align:middle such a property, but recently began to explore her to find her really unfathomable, I can only beyond ah ...

I. Vertical-align BASIC INTRODUCTION

Vertical-align Gu Mingsi, people who understand English will know the meaning of vertical alignment, and our common vertical-align is used for vertical alignment, the basic format:

1 input {2     vertical-align: Middle;                           3 }    

But at the same time I also want to notice that this attribute has her application scope:

1. Can only be applied to inline elements and replacement elements, like and form input elements

2.vertical-align property cannot inherit

Two. Value of Vertical-align

Property Describe
Baseline Requires that the baseline of an element be aligned with the baseline of its parent element
Sub
Super
Text-top
Middle
Bottom
Text-bottom
Percentage
Length
Inherit

Get to know Vertical-align

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.