AllDani.com AllDani.com - 26 days ago 20
CSS Question

CSS button styling

I have a button.

When visiting my site on Google Chrome Incognito Mode (which resets styles from being 'visited') the button's text is blue.

I want it white. See:



.button {
color:#ffffff;
background:#d8eaf0;
}
.button:visited {
color:#ffffff;
background:#d8eaf0;
}
.button:hover {
color:#ffffff;
background:#3838a5;
}
.button:active {
color:#ffffff;
background:#d8eaf0;
}

<a href="example.com" style="text-decoration: none" class="button">text</a>




Answer

Where your ".button" CSS style is, change it to ".button:link".