HTML Element Style How to - Align inline image inside div tag


We would like to know how to align inline image inside div tag.


<!DOCTYPE html>
<style type='text/css'>
img {<!--from ww  w.  ja va  2 s  . c o m-->
  vertical-align: top;
  <div style="display: table; margin: 0 auto; margin-top: 10px">
    <input id="searchip" type="text" maxlength="30" autofocus="" size="50"
      name="textnew" style="height: 20px" /> 
    <img style="width: 20px;height: 20px"  src="">

The code above is rendered as follows: