Home > Article > Web Front-end > Problems with alignment of different elements: bottom or middle alignment is required. _html/css_WEB-ITnose
<table> <tr> <td> <input type="text" style="height:16px; width:27px" id="text1" /> <input type="image" src="images/logo.gif" style="height:16px; width:16px;" id="image1" /> </td> </tr></table>
Bottom alignment of image1 and text1:
<table> <tr> <td> <input type="text" style="height:16px; width:27px" id="text1" /> <input type="image" src="images/logo.gif" style="height:16px; width:16px; vertical-align:bottom" id="image1" /> </td> </tr></table>
It turns out that I added the wrong style, I kept going to TD None of them work. . .
Using css to control will eventually encounter compatibility issues. It is better to change the page.
<table> <tr> <td> <input type="text" style="height:16px; width:27px" id="text1" /> </td> <td> <input type="image" src="images/logo.gif" style="height:16px; width:16px;" id="image1" /> </td> </tr></table>