Background color doesn't get changed when I hover on btn


#1

https://www.codecademy.com/courses/web-ext/projects/html-css-prj_innovation-cloud

Hello, it's me again.
I've tried to change color of btn when I hover. (blue -> white)

so I put code as below.
But it doesn't work as I meant. It seems like some kinda force is preventing me from hustling.
Here is my code.

.btn {
  background-color: black;
  border: 1px solid black;
  color: white;
  text-decoration: none;
  padding: 10px 40px;
}

.btn:hover {
 background-color: white;
 cursor: pointer; 
 transition: background .5s;  
}

Thanks in advance again!


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.