class names Was: [uf-discuss] hcard validation

Scott Reynen scott at randomchaos.com
Tue Apr 18 07:12:47 PDT 2006


On Apr 18, 2006, at 8:16 AM, Mark Wallace wrote:

> I'm sorry for asking a really silly question, but doesn't it make  
> sense that any class should have a a space as either a dash or  
> underscore?
>
> If memory serves, the "url fn" would break the standard css  
> formating...

Though most authors only ever use single class names, the class  
attribute contains *multiple* space-separated class names.  So "url  
fn" is two class names, not one.  You can do CSS formatting on  
intersections of multiple class names like so:

.url.fn { color: #f00; }

Peace,
Scott


More information about the microformats-discuss mailing list