HTML CSS examples for CSS Widget:Image Text Alignment
Vertical align on image and text
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!-- www .j a v a 2 s. c o m--> margin:21px; } .video-author-box { display:inline-block; padding:4px; } .video-author-box img { float:left; } .box { border:2px solid Chartreuse; } .video-author-box { display:inline-block; padding-top:9px; } .video-author-box img { margin-top:-7px; } </style> </head> <body> <a href="" title="" class="video-author-box box"> <img style="height:32px;" src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="">Lorem ipsu</a> </body> </html>