Caroline Dahllof
Posts: 0
Joined: Thu May 07, 2015 9:07 pm

How do I to set color for an active link?

I have link and I want to set a different color when the link is active. Could you please let me know how do I go about doing this.

Thanks!

caro

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

How do I to set color for an active link?

Assuming you are using the HTML component with the links, you can simply use CSS to indicate the colors for the link. For example in your internal CSS (the CSS that you put in the code<HEAD>/code tag), you can simply put these and change the colors to whatever you'd need

code
/* unvisited link */
a:link {
color: #FF0000;
}

/* visited link */
a:visited {
color: #00FF00;
}

/* mouse over link */
a:hover {
color: #FF00FF;
}

/* selected link */
a:active {
color: #0000FF;
}
/code
Cheers,
M&M

Caroline Dahllof
Posts: 0
Joined: Thu May 07, 2015 9:07 pm

How do I to set color for an active link?

I have done that and in appery I can see the colors change. But when I test the app in the browser or on my iPhone the colors do not change.

Return to “Issues”