Support » Plugin: mb.YTPlayer for background videos » Wrong layer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pupunzi

    (@pupunzi)

    In your CSS file you have a property that is conflicting with the component behaviour:

    #fondo {
    background-image: url(“../images/fondo.png”);
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -100 !important;
    }

    If you remove the z-index propery or set it to 0 then it works as it should.
    The video player has a z-index of 0 and is the first element in the DOM tree, so it should be placed on the back of the other elements. But if you have any element in the page with a negative z-index, this element will be placed behind the player.

    Hope this helps you,
    Bye,
    Matteo

    That worked, thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong layer’ is closed to new replies.