Hi, According to the w3.org pseudo-classes can be used in element's style attribute. Example: <a href="http://www.w3.org/" style="{color: #900} :link {background: #ff0} :visited {background: #fff} :hover {outline: thin red solid} :active {background: #00f}">...</a> Source: http://www.w3.org/TR/css-style-attr But it does not seem to work in IE? Does it mean it is not supported? Thank you, Tomasz Yes, I know this can be accomplished in several other ways.
Tomasz Jastrzebski wrote: > According to the w3.org pseudo-classes can be used in element's style > attribute. I don't know of a client that implements this. (That doesn't mean there isn't one.) > Example: ><a href="http://www.w3.org/" > style="{color: #900} > :link {background: #ff0} > :visited {background: #fff} > :hover {outline: thin red solid} > :active {background: #00f}">...</a> >Source: http://www.w3.org/TR/css-style-attr This is a four-year-old Working Draft. It is not a Recommendation. From the "Status of this Document" section: It is a public W3C Working Draft for review by W3C members and other interested parties. As a draft document it may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress." > But it does not seem to work in IE? Do you know of a client that does support it? > Does it mean it is not supported? Yes. -- Steve Life can only be understood backwards; but it must be lived forwards. -Soren Kierkegaard