CSS overlay does not work alive -:)
-
Hi there,
on the first image on the page linked, I added this CSS code that I found here:.container-overlay { position: relative; width: 50%; } .overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .5s ease; background-color: #008CBA; } .container-overlay:hover .overlay { opacity: 1; } .text-overlay { color: white; font-size: 20px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; }
on my desktop, it works.
I wonder why does not work on the web -:)
Any ideas or suggestions, thanks in advance.The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.