Putting input and img on the same line, the img tag is always one head higher than the input, which is very ugly. I have tried many methods before, but none of them worked. Later, the most common solution I found on the website was to add an align="absmiddle" attribute to img. This method does seem to be feasible, but it does not comply with HTML standards. Later I accidentally discovered that adding vertical-align:middle to both input and img would work: Copy code The code is as follows:input,img{vertical-align:middle;} This way the code will be aligned horizontally. |
<<: Implementation steps for installing FTP server in Ubuntu 14.04
>>: Page Refactoring Skills - Content
1. Download the installation package Download add...
Recently, there has been a growing demand for imp...
There are currently three ways to display the cen...
Table of contents Preface question Online solutio...
Table of contents 8. CSS3 click button circular p...
When using Flex layout, you will find that when a...
Running Docker requires root privileges. To solve...
Vertical table Vertical table splitting means spl...
Before the arrow was shot, the bow whispered to t...
COALESCE is a function that refers to each parame...
How to install iso files under Linux system? Inst...
The <canvas> element is designed for client...
Table of contents Project Background start Create...
How to write join If you use left join, is the ta...
Table of contents Example Method 1: delete Method...