Page 1 of 1

Inline Style .hover

Posted: Tue Jul 30, 2019 2:35 pm
by BanyanAir
Hi,

Using inline style I am able to override text-decoration for a specific element. I can't figure out how to get it to work for just a HOVER. Has anyone used "conditional" inline styles?

Thanks,

Re: Inline Style .hover

Posted: Tue Jul 30, 2019 7:22 pm
by Scott Klement
Are you referring to the CSS pseudo-selector :hover? For example, you could set styling when someone hovers over an html link by coding:

Code: Select all

a:hover {
   // style here
}
Is that what you're referring to? If so, pseudo-selectors have never been allowed as inline styles in CSS. (This is true of all HTML/CSS pages, including but not limited to Profound UI).

Instead of coding this in the "inline style", put it in a CSS file. If necessary, use the "css class" property to force your widget to use the CSS style that matches the selector in the CSS file.