HTML CSS examples for CSS Form:input button text
Align buttons by their borders rather than their text
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> button {<!-- w w w . j av a 2 s . c om--> height: 64px; width: 64px; border: outset 8px #999; border-radius: 64px; vertical-align:40px; } img { vertical-align: bottom; } </style> </head> <body> <button>button</button> <img src="https://www.java2s.com/style/demo/Safari.png" height="100" width="auto"> </body> </html>