[Pmwiki-users] Odd tip for style sheets

Patrick R. Michaud pmichaud
Thu Jan 22 14:47:21 CST 2004


On Thu, Jan 22, 2004 at 03:16:10AM +0100, Christian Ridderstr?m wrote:
> On Wed, 21 Jan 2004, Patrick R. Michaud wrote:
> 
> > On Tue, Jan 20, 2004 at 08:26:17PM +0100, Christian Ridderstr?m wrote:
> > > Here's a snippet of style sheet code I found on the Opera list. 
> > > [...]
> > > a[href][target]:before {
> > >         color:lime;
> > >         font-weight:bolder;
> > >         content: "\AE";
> > > }
> > 
> > This is very cool to know about--does it work in any other browsers
> > besides Opera?
> 
> Shouldn't it work in any browser that allows you to select your own 
> stylesheet?


I just did a little bit of checking on this, and the "[href][target]"
portions are "attribute selectors", introduced in CSS2.  According
to blooberry.com, many browsers (notably IE6) don't support this yet :-(,
the only ones listed are Netscape 6 and Opera 4.

IE6 doesn't support the ":before" pseudo-element or content attribute
yet, either.  Still, this will be very cool and useful when it does 
become supported.

Pm



More information about the pmwiki-users mailing list