Forum Moderators: not2easy

Message Too Old, No Replies

Inline visited tag how?

is it allowed?

         

Clark

1:44 am on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you allowed to place a visited color inline?

What is the syntax?
Something like this?
<a style="visited:#CCCCCC">word</a>

Maujor

7:48 pm on Mar 8, 2006 (gmt 0)

10+ Year Member



Hello Clark,
No, CSS pseudo classes like a:hover aren't allowed inline. So, there isn't a CSS way to achieve the effect you are trying.

VidGa

8:16 pm on Mar 8, 2006 (gmt 0)

10+ Year Member



"So, there isn't a CSS way to achieve the effect you are trying."

I wouldn't go that far -- there's no way to achieve the desired effect with inline style, but a simple class can get the job done just as easily.

Are there any details of what you're trying to do that make classes undesirable?

Maujor

8:25 pm on Mar 8, 2006 (gmt 0)

10+ Year Member



"Are you allowed to place a visited color inline?"
The effect desired is "place a visited color inline"
and the answer is: There isn't a CSS way to achieve the effect.

DrDoc

8:28 pm on Mar 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, there is a working draft (WD) which provides a solution ...
[w3.org...]

<a href="http://www.w3.org/"
style="{color: #900}
:link {background: #ff0}
:visited {background: #fff}
:hover {outline: thin red solid}
:active {background: #00f}">...</a>

However, as a WD, I don't think there are any browsers out there supporting this syntax as of yet ... as it is subject to change.