So I'm aware that to add a "regular" style to an object in asp you use:
object.Style.Add("background-color", "red");
Is there any way to add a style but with the :hover selector? Can't find any useful info skimming the web.
Thanks a lot!
So I'm aware that to add a "regular" style to an object in asp you use:
object.Style.Add("background-color", "red");
Is there any way to add a style but with the :hover selector? Can't find any useful info skimming the web.
Thanks a lot!
You can't do this with the :hover
selector. The :hover
pseudo selector can't be applied/used in inline-styles. object.Style
applies inline styles. You should be using stylesheets anyway and not inline styles.