[WSG] wildcards in css selectors?

2005-03-02 Thread Alan Trick
Hi,
I'd like some help from the css experts here.  Is it possible to add a 
user stylesheet that will apply a certain style to any link that is from 
a particular site/file like

a[href=http://www.foobar.com*] or a[href=*filename*]
I'm useing firefox so applying a user style sheet isn't hard, I'm just 
wondering if css has that capability.

Alan Trick
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] wildcards in css selectors?

2005-03-02 Thread Jan Brasna
a[href=http://www.foobar.com*] or a[href=*filename*]
CSS3 has ^= selector. (Look it up in 
http://www.alistapart.com/articles/goingtoprint/ ...)

--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] wildcards in css selectors?

2005-03-02 Thread Kornel Lesinski
On Wed, 02 Mar 2005 18:08:08 -, Jan Brasna <[EMAIL PROTECTED]>  
wrote:

a[href=http://www.foobar.com*] or a[href=*filename*]
CSS3 has ^= selector. (Look it up in  
http://www.alistapart.com/articles/goingtoprint/ ...)
or http://www.w3.org/TR/css3-selectors/#attribute-selectors
--
regards, Kornel LesiƄski
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] wildcards in css selectors?

2005-03-02 Thread Alan Trick
It appears that gecko doesn't support that yet.  I guess I'll have to wait.
Jan Brasna wrote:
a[href=http://www.foobar.com*] or a[href=*filename*]

CSS3 has ^= selector. (Look it up in 
http://www.alistapart.com/articles/goingtoprint/ ...)

**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] wildcards in css selectors?

2005-03-02 Thread Jan Brasna
It appears that gecko doesn't support that yet.  I guess I'll have to wait.
Exactly.
--
Jan Brasna aka JohnyB :: www.alphanumeric.cz | www.janbrasna.com
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**


Re: [WSG] wildcards in css selectors?

2005-03-02 Thread Nils Kr. Falch
On Wed, 02 Mar 2005 13:40:10 -0500, Alan Trick <[EMAIL PROTECTED]> wrote:
> It appears that gecko doesn't support that yet.  I guess I'll have to wait.
> 

Gecko( mozilla1.7/firefox) and khtml(konqueror3.3.2) has support for
the different attribute selectors E[foo~="bar"], E[foo^="bar"],
E[foo$="bar"], E[foo*="bar"]

Did a quicktest, sure the example could have been better, but it will
do as a quick test ;)
http://test.9ls.org/css-examples/selectors.html
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**