I am trying to add an arrow image next to text within a range. Here is the HTML I'm working with:
<span id="status" class='unreviewed'> Unreviewed <img src="bullet_arrow_down.png" /> </span>
Now I have colored the span background using this css:
#status { float: right; position: relative; cursor: pointer; -moz-background-clip:border; -moz-background-inline-policy:continuous; -moz-background-origin:padding; color:#FFFFFF; font-size: 1.8em; top: 10px; } #status span.unreviewed { padding: 3px 4px; background:#DA704B none repeat scroll 0 0; } #status span.unreviewed img { float: right; }
Now it displays everything correctly aligned, but the background color does not extend beyond the end of the word "Not visible." The image, despite the fact that it is transparent png, is white behind, not # DA704B.
This applies to both Firefox and Safari. Any help would be appreciated!
html css image
Tim sullivan
source share