[Resolved] How can I show youtube videos & images to full width

Home Forums Support [Resolved] How can I show youtube videos & images to full width

Home Forums Support How can I show youtube videos & images to full width

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41101
    Dhruv

    Dear Tom

    How can I show my youtube videos & Images inside my post content to full width of content container. Currentlt it is showing some padding similar to rest of content.

    Today, I just purchased Generate Press and I am loving it.
    I am yet to discover many addons.

    Regards

    #41279
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Glad you’re enjoying the theme! ๐Ÿ™‚

    The Spacing addon has a class that comes with it so you can ignore the spacing you have set in the content.

    So, you would first wrap your video/image in a div, and give that div the class provide by the Spacing addon.

    <div class="ignore-x-spacing">
          video/image in here
    </div>

    And that should do it ๐Ÿ™‚

    #41661
    Dhruv

    Dear Sir

    Its not working. Also youtube video width & height is very small if i dont set width and height in youtube iframe link.

    #41779
    Tom
    Lead Developer
    Lead Developer

    Can you link me to the page where you’re trying this?

    Thanks!

    #42782
    Franz

    <div class=”ignore-x-spacing”> ignores only the left padding.
    If you use <div class=”ignore-xy-spacing”> the top padding disappears as well.

    But under the Video there is too much space between the video and the Headline.

    How can I handle this?

    #42837
    Tom
    Lead Developer
    Lead Developer

    You can alter the bottoms spacing like this:

    .ignore-xy-spacing {
          margin-bottom: 40px;
    }
    #42891
    Franz

    Thanks! This works.
    I used Custom CSS.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.