Share this page 

Embed an image into textfieldTag(s): Form HTML/CSS


This can be useful to give a visual cue for a specific field like a mandatory value.
<style>
input.man { background-image: url(../images/mandatory.gif); 
            background-repeat: no-repeat;
            background-position: center left;
            padding-left: 0.5em;
}
</style>

...
<label> Value : <input type=text class=man width=50/></label>

It looks like :


See also this HowTo.