• Resolved AZBros

    (@azbros)


    When I create a post, I can simply paste the URL of a YouTube video into the post and it will embed the video. I noticed the other day that, even when placing the code on it’s own line, the next paragraph nearly touches the bottom of the video. In my previous theme, a standard amount of padding was placed between the embedded video and the next paragraph. Embedded pictures don’t seem to have this same issue. When placing them within a post, padding is automatically added above and below them and they look good within the post. Is there a way to add this is CSS so embedded YouTube videos act the same way? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • bdbrown

    (@bdbrown)

    Hi AZBros. You could give the video container a bottom margin:

    .video-container {
        margin-bottom: 20px;
    }
    Thread Starter AZBros

    (@azbros)

    Thanks, that worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Padding Under Embedded YouTube Videos in Posts’ is closed to new replies.