1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Wrong embedded videos' dimensions

Discussion in 'Free Divi Community Forum' started by andalltha, May 18, 2020.

  1. andalltha

    andalltha Member

    Hi there!

    I'm building a website with Divi. It's a director's portfolio. The director wants the embedded videos to have the exact same width than the thumbnails' width on every screen. I bought the Video PopUp plugin and I added extra CSS in order to equalize the videos and thumbnails' widths. It works fine with the first two videos featured on the site but it doesn't work with the third one. Looks like the black background has the right width but the video itself and the player controls don't. And, last but not least, it seems the whole PopUp element always has the same ratio (something like 16:9) and when the original video size has a different ratio, unwanted extra black spaces appear (see screenshots attached). I contacted the Video PopUp creator but he didn't really help. Do you think I could fix it with a bit of CSS?

    Now I know this is not an absolute Divi-related thread, I'll understand if you don't want to answer these two questions.

    Thank you, have a nice day!
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom footer designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    To fix the black space for video 1 & 2, try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    But for video 3, it's because your video ratio is different from video 1 & 2. You should change the video 3 ratio to be same as video 1 & 2.
     
  3. andalltha

    andalltha Member

    Thank you very much. Finally I used a better plugin.
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring unique comment design on single blog post page:View Demo