You simply need to target .button-info a to change the color of your text to white.
<style>
.btn-info { background: #0066cc; border: none; border-radius: 3px; font-size: 18px; padding: 10px 20px; }
.btn-info a, .btn-info:hover {
color: white;
}
.btn-info:hover{
background: #003366;
transition: 0.5s background;}
</style>
<button class="btn-info"> <a href="LINK">New Service Request</a></button>
It's worth noting too that your HTML is invalid, the nested structure <button><a></a></button> is not accepted, and can be checked by a Markup Validation Service. See the error below:
Error: The element a must not appear as a descendant of the button element.
A valid and more succinct version of your code is as follows:
<style>
.btn-info {
background: #0066cc;
border: none;
border-radius: 3px;
font-size: 18px;
padding: 10px 20px;
color: white;
}
.btn-info:hover {
background: #003366;
transition: 0.5s background;
cursor: pointer;
}
</style>
<input type="button" class="btn-info" onclick="location.href='http://google.com';" value="Google" />
buttonwith ananested within it. Targetting thebuttonwith CSS won't modify the font-color as per the linked example. The only answer is to target theawithin thebuttonusing CSS.acannot be inside a button element