W3C home > Mailing lists > Public > www-forms@w3.org > March 2005

Re: Button with an image.

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Wed, 23 Mar 2005 12:27:22 +0100
Message-ID: <4241529A.8000301@annevankesteren.nl>
To: Stefano Debenedetti <ste@demaledetti.net>
CC: www-forms@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:00 GMT