0

Possible Duplicate:
How to write a:hover in inline CSS?

Is it possible to do this:

<a href="#">link</a>

a{ color: red; }
a:hover{ color: blue; }

As inline?

<a href="#" style="color: red; ....;">link</a>
Community
  • 1
  • 1
Marty
  • 39,033
  • 19
  • 93
  • 162
  • 1
    can't uses selectors in line sorry – Ibu May 11 '11 at 06:48
  • Have you written a test page and tried to do this? Nevermind - seems the answer is no anyway. :) – Nathan May 11 '11 at 06:52
  • @Ibu Good find mate, sadly I haven't been using this site long enough to memorize the entirety of its content. If what I'm looking for doesn't appear in the related questions when I ask, then it seems quicker to ask myself. Thanks though, answered my question. – Marty May 11 '11 at 06:58
  • @Marty There is a handy search box in the top right corner. I managed to use it several times with great success :). Noone has been here long enough to memorize the site's contents. – kapa May 11 '11 at 07:05
  • If people wanted to use search boxes to solve everything; wouldn't they just use Google? – Marty May 11 '11 at 07:07
  • @Marty Wallace: Please don't take it as something against your question, think of it as a way to help the next guy typing in the question or search box. Now the questions are linked as well. Don't worry about it - the question is relevant. – Wesley Murch May 11 '11 at 07:22

1 Answers1

2

No. style="" allows to define only list of style properties. No CSS selectors are allowed there.

c-smile
  • 26,734
  • 7
  • 59
  • 86