title: Convert html img tag to css
body: <p>How do I convert and img tag to css so I don't have to have a million img tags. Or whats the best way todo images with css</p>
  
  <p><code>&lt;img src="hg-rx.gif" name="foo" width="18" height="18"&gt;</code></p>
  
  <p>I tried background:url in css and it needs text for it to display properly, id hilight and the image would disappear</p>
  
  <pre><code>.hg-text-rx {
    background:url(hg-rx.gif);
    background-repeat: no-repeat;
    position: relative;
   }
  </code></pre>