Link to home
Start Free TrialLog in
Avatar of sabecs
sabecs

asked on

CSS - how to make button/link change to black on hover?

Hi, I am trying to work out how to make button/link change to black on hover?


<html>
<head>
<title>Untitled Document</title>

<style type="text/css">
.application_button.button{
        font-size: 20px;
        padding:5px !important;height:40px;
        color: #FFF;
        background-color: #8EC470 !important;
        border: none;
	    border-radius: 3px;
	    -moz-border-radius: 3px;
	    webkit-border-radius: 3px;
		text-decoration: none;
        padding-left:20px!important;
        padding-right:20px!important;
}


.application_button.button :a:hover{
        color: #FFF;
        background-color: #000 !important;
}


</style>

</head>

<body>


<a href="/job-search/" class="application_button button">Back</a>
<a href="/job-search/" class="application_button button">Job Search</a>


</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sabecs
sabecs

ASKER

Thanks