Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Adjust youtube video size in lightbox

5 years 7 months ago #1

  • Rodrigo's Avatar
  • Rodrigo
How do I make the video from youtube automatically adjust the height of the screen in lightbox?

5 years 6 months ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23015
Hello,

you need to add custom css code at the css file your template
.ba-modal-body.embed-code{
    height: 100vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 100vw;
}

.ba-modal .embed-code .modal-image.embed {
    position: static !important; 
    padding: 0!important;
}

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum