N
Noozer
Is it possible to specify a background-image for a CSS class and have that
image scale to fit whatever space is taken by the content of the object
using that class?
ie.
CSS:
.button {background-image: url(button.gif);}
HTML:
<p>...next, click the <span class="button">OK</span> button to accept the
change or click the <span class="button">Cancel</span> button to cancel the
changes.</p>
....and the "button.gif" image would be scaled to fit the height/width of the
"OK" text and the "Cancel" text on the page?
image scale to fit whatever space is taken by the content of the object
using that class?
ie.
CSS:
.button {background-image: url(button.gif);}
HTML:
<p>...next, click the <span class="button">OK</span> button to accept the
change or click the <span class="button">Cancel</span> button to cancel the
changes.</p>
....and the "button.gif" image would be scaled to fit the height/width of the
"OK" text and the "Cancel" text on the page?