Reputation: 11
I have div class called rectangle and i wanted to make hover effect with transition using css, but Google browser dont let the hover works when the browser window is in fullscreen. I'm using Mac by the way.
this is how i'm doing the hover with css:
.rectangle:hover {
Background: #4CAF50;
-webkit-transition: background 0.3s;
-moz-transition: background 0.3s;
-ms-transition: background 0.3s;
-o-transition: background 0.3s;
transition: background 0.3s;
}
It works in Firefox and Safari browser in fullscreen, but google dont let it work in fullscreen and i dont know why. Please help me to fix this problem i'm not able to find a fix for it.
Upvotes: 1
Views: 189
Reputation: 15136
I have 3 advices for you:
background
not "Background"background
by the more specific background-color
:fullscreen
pseudo-class might be useful in your caseUpvotes: 1