Jump to content

Inline link CSS definition


Norman
 Share

Recommended Posts

you mean something like this?<a style="text-decoration:none; color:#00FF00; " href="">Here be a link to a page</a>but why not do this?<a id="link1">Here be a link to the treasure</a>and in your stylesheet - #link1 a{text-decoration:none;color:#00FF00;}#link1 a:hover{color:#FFFF00;text-decoration:underline;}

Link to comment
Share on other sites

Yes, but.. right now, in my CSS page I have this:

a:link	{color: #868686; background-color: transparent;}a:visited {color: #868686; background-color: transparent;} a:active  {color: #FF0000; background-color: transparent;} a:hover   {color: #00FF00; background-color: transparent;}

I want to port them in my HTML page, in my CSS inline definitions. Is this possible?

Link to comment
Share on other sites

Use an inline style and a javascript onclick event handler for the on:hover event.But why would you want it out of the CSS???
I just want(ed) to know if this was possible! Ok, now I know. :)Thank you for your replies!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...