"CSS Basics" trivial records < three >

Source: Internet
Author: User

About attribute Vertical-align

Today, there is a problem with a cell in table with a text type of input, and then there is a picture. I've been doing this for a long time, the picture can't be vertically centered, I'll remove the input and find the adaptive and centered

Later found the vertical-align attribute. CSS Basics

The following is an official explanation from the website:

Vertical-align

property to set the vertical alignment of the element.

This property defines the vertical alignment of the baseline of the element within the row relative to the baseline of the row where the element is located. (the green keyword, which adjusts the baseline for these two inline elements to be the same?) ) allows you to specify a negative length value and a percent value. This causes the element to be lowered rather than raised. In a table cell, this property sets the alignment of the cell contents in the Cell box.

"CSS Basics" trivial records < three >

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.