Norman Posted September 19, 2007 Share Posted September 19, 2007 I don't remember how can I do this! I have searched around the CSS site section with no results! Can you help me? Link to comment Share on other sites More sharing options...
real_illusions Posted September 19, 2007 Share Posted September 19, 2007 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 More sharing options...
Norman Posted September 19, 2007 Author Share Posted September 19, 2007 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 More sharing options...
jlhaslip Posted September 19, 2007 Share Posted September 19, 2007 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??? Link to comment Share on other sites More sharing options...
real_illusions Posted September 19, 2007 Share Posted September 19, 2007 no point in using javascript for on hover events in my opinion.Just give the links a seperate id and stick the style in the css like i did above. Much easier and simpler to change at a later date. Link to comment Share on other sites More sharing options...
Norman Posted September 26, 2007 Author Share Posted September 26, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.