Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use CSS to achieve vertical alignment of pictures and text on the same line

Shulou Source: shulou.com Published: 2022-06-01 11:26:32 10月03日 Update

Editor to share with you how to use CSS to achieve the vertical alignment of pictures and text on the same line, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The code is as follows:

Align the pictures and text in the same line vertically

Body {

Font-size:9pt

}

# buttons * {

Vertical-align:middle

}

/ * if the above is not compatible with Firefox, you can add the following sentence as well!

# buttons * {

Vertical-align:middle

}

, /

Retrieve the password.

Are the pictures and words above vertically aligned?

The above is all the contents of the article "how to use CSS to achieve vertical alignment of pictures and text on the same line". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Pictures text articles one line above content not much code most passwords more Firefox knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MariaDB Redmi Shulou Information Docker