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 Inserting a video in a text module that does not fill row

Discussion in 'Free Divi Community Forum' started by Ben Grodski, Aug 29, 2021.

  1. Ben Grodski

    Ben Grodski New Member

    Hello. I am currently trying to embed a youtube video in a text module AND I do not want it fill the row. Currently I can embed the video with embed code from youtube (using width="560" height="315" ) and it looks fine in the Divi Visual Builder but when I exit and view the live page the video expands to fill the entire row.
    Is there something I need to add or delete to the embed code below to prevent this:

    <iframe width="560" height="315" src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    Thanks for your time,
    Ben
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

  3. Ben Grodski

    Ben Grodski New Member

    Thank you!

    That worked!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo
  4. Ben Grodski

    Ben Grodski New Member

    Sorry to bother but how would I center this video?


    I tried the follow to no avail:

    div style="text-align: center;">
    </div>
    </div><div style="max-width: 560px;"><iframe src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" width="560" height="315"></iframe>
    </div>
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    Replace this:

    <div style="max-width: 560px;">

    with this:

    <div style="max-width: 560px;margin: auto;">
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More
  6. Ben Grodski

    Ben Grodski New Member

    Thank you that worked!
    Thanks for your help!