S
S
sabanovvv2015-10-02 19:56:57
css
sabanovvv, 2015-10-02 19:56:57

How to display youtube video in modal window?

tell me please!
connected lightbox to enlarge photos, videos, etc.
photos increase, everything is fine, here on this page
music.frontendwork.esy.es/photo.html

when I try to display video in a pop-up window, nothing happens
music.frontendwork.esy.es/video.html

what could be the error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Goryachkin, 2015-10-02
@abaddon65

You inserted them yourself as previews of the videos, instead of pictures, and they are displayed using an iframe, and it overrides the link to call the lightbox. So you can either replace the thumbnails with pictures, and just open the video in a lightbox, or add something like this:

.video_block iframe {
    position: relative;
    z-index: -1;
}

D
Dmitry Pyrkin, 2015-10-02
@ps1panda

you need to put a picture on the video block and when you click on it, open the video

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question