Serge insas
Serge insas

Reputation: 46794

Is it possible to style a href widget differently in UiApp?

In UiApp, the default style for href widgets is the classical blue underlined aspect. Is it possible to define a new style for this like one can do with css style sheets and html ?

For example : link in normal black, getting grey when hovering ?

here is how I did it in css :

h1 a:link, h1 a:active, h1 a:visited {
    color: #111;
    text-decoration: none;
}
h1 span {
    color: #111;
}
h1 a:hover, h1 a:focus {
    color: #777;
}

Upvotes: 1

Views: 98

Answers (1)

Corey G
Corey G

Reputation: 7858

You can set the primary style via setStyleAttributes but you cannot set pseudo-selector styles like hover and focus.

Upvotes: 1

Related Questions