I am trying to make it where when you hover over a button, the background shifts from plain gray to a CSS styled Gradient thing..... It all works, other than the fact of when I hover over the button, the background stays gray, instead of changing to the Gradient.(Im not good with wording sentences, sorry) But I tried to do this and it didn't work, so if you can help me out I would appreciate it.
HTML:
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' href='style.css'/>
<script src='script.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</head>
<body>
<div class='TopBar'>
<div id='TopBar_Nav'>
<center>
<input type='button' class='TBNP' id='TBN-1' value='Player Statistics'>
<!---->
<input type='button' class='TBNP' id='TBN-2' value='Player Inventory'>
</center>
</div>
</div>
<div class='Main'>
</div>
</body>
</html>
CSS:
.TBNP {
border-radius: 4px;
border: 1px solid black;
color: gray;
background-color: #EDEDED;
transition: 0.5s;
}
.TBNP:hover {
border-radius: 10px;
color: black;
border: 1px solid black;
background-color: linear-gradient(to bottom right, red, yellow);
cursor: pointer;
}