WordPress.org

Ready to get started?Download WordPress

Forums

Ductile Responsive Video
[resolved] Padding after embed? (2 posts)

  1. choooo
    Member
    Posted 3 months ago #

    Hi there :)

    Just installed your plugin and I'm pretty happy so far. There's just one little thing that's really bothering me: There is no padding/margin after an embed. You can even see this issue on your plugin website:

    http://cubecolour.co.uk/ductile-responsive-video/

    See, there is no space between the embed and the next <h2/3>. I'd love if you could fix that :)

    Thanks in advance!

    https://wordpress.org/plugins/ductile-responsive-video/

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Plugin Author

    Posted 3 months ago #

    This is intentional. Often a video will need to be embedded with a block of text following immediately which could look wrong if there was a gap separating the video and the text.

    If you need a gap, the quick & dirty workaround could be to add a couple of line breaks after the video, however a CSS tweak would be better. In this case I think adding a margin value would probably be more appropriate than padding.

    To do this add:

    .embed-wrap {
        margin-bottom: 20px;
    }

    To your child theme or custom styles plugin.

Reply

You must log in to post.

About this Plugin

About this Topic