Support » Fixing WordPress » CSS overlay does not work alive -:)

  • Resolved FeliceAntonio

    (@antonio_09)


    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.

    • This topic was modified 18 hours, 54 minutes ago by FeliceAntonio.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Well, unbelievable -:)
    Is not the first time (the 2) that I add CSS code in child theme style.css and it does not work.
    I add in additional CSS of Customize Dashboard, and it works -:)

    • This reply was modified 18 hours, 27 minutes ago by FeliceAntonio.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.