DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Show Image In Selection-box

10.02.2006
| 1698 views |
  • submit to reddit
        // works only in mozilla

<style type="text/css">
<!--

    option[value=ohcon]:before { content:url("ohc.gif"); }
    option[value=baerlin]:before { content:url("baer.gif"); }
    option[value=zendo]:before { content:url("zendo.gif"); }

-->
</style>

..

Select Company
<select>
  <option value="ohcon">Oliver Haag IT consulting</option>
  <option value="baerlin">Bärlin Partners</option>
  <option value="zendo">Zendo-Marketing</option>  
</select>