HTML CSS examples for CSS Widget:Font awesome
Align font awesome icon in the middle of select element's height
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"> <style id="compiled-css" type="text/css"> div {<!-- w ww .j a va 2 s . c o m--> display:table } a { display:table-cell; vertical-align:middle; } </style> </head> <body> <div> <select size="10"></select> <a href="#"> <i class="fa fa-times-circle" aria-hidden="true"></i> </a> </div> </body> </html>