HTML CSS examples for CSS Widget:Image Align
Align an image with CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> p {<!-- w w w . j av a 2 s . c o m--> font-size:13px; border:2px solid Chartreuse; } .link img { margin-top:6px; } a { display:inline-block; vertical-align:middle; } </style> </head> <body> <p> <a href="#" class="link"> <img width="14" height="14" src="https://www.java2s.com/style/demo/Safari.png"> </a> <a href="#" class="link">my title</a> </p> </body> </html>