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
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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
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
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.