W3C home > Mailing lists > Public > public-rdfa@w3.org > March 2009

Re: RDFa and CSS

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 10 Mar 2009 17:13:27 +0100
To: publicayers@verizon.net, public-rdfa@w3.org
Message-ID: <op.uqk3cpvksmjzpq@acer3010.flex.surfnet.nl>
	[rel] {color: red}
would turn all elements with a rel attribute red.

	[rel="foo"] {color: red}
would turn all elements with a rel with value "foo" red.

See http://www.w3.org/TR/CSS21/selector.html#attribute-selectors for  

Hope this helps.

Best wishes,

Steven Pemberton

On Tue, 10 Mar 2009 16:42:58 +0100, <publicayers@verizon.net> wrote:

> I'm trying to figure out how to tie RDFa annotations into CSS;  
> unfortunately, I'm just beginning with RDFa and I have even less  
> understanding of CSS.
> We've started looking into RDFa because we want to use it in our  
> applications. I was looking at some example markup that a coworker was  
> working on and noticed that you would duplicate an @rel with an @class,  
> something like
>     ... class="foo" rel="foo" ...
> so that someone could define a foo class in CSS and format the fragment.  
> Is there a way of having a more direct connection between the RDFa  
> annotations and CSS? The only thing I've been able to find is a few docs  
> on Fresnel, but I'm not sure we can assume someone's going to have a  
> capability to process Fresnel in their browser.
> Brian
Received on Tuesday, 10 March 2009 16:13:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:03 UTC