Re: Button with an image.

Stefano Debenedetti wrote:
> Not sure how to fully replace the label with an image, in the example 
> above I used a background so that it degrades well on not so good CSS 
> implementations (IE) anyway.

Something like:

  @namespace xforms url(http://www.w3.org/...);
  xforms|label{
   display:block;
   height:20px;
   width:100px;
   text-indent:-1000em;
   overflow:hidden;
   background:url(foo) no-repeat;
  }

... should work. When the CSS3 content module is finished and 
implemented you can use:

  xforms|label{
   content:url(foo);
  }

... 'content' is already supported in Opera, but Opera does not support 
namespace selectors and does not has an XForms plugin/extension I believe.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Wednesday, 23 March 2005 11:27:55 UTC