question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

embed through editor adds huge padding-bottom buffer on each embed

See original GitHub issue

Embeds added through the hallo editor seem to wrap iframes inside of the following div with an inline style:

<div style="padding-bottom: 56.25%;" class="responsive-object">
 iframe
</div>

I had to override this in my project css with the following code:

.responsive-object {
  padding-bottom: 0px !important;
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

5reactions
davecranwellcommented, Jul 9, 2015
4reactions
hanzvanaardtcommented, Feb 26, 2019

I ran into this issue today and it sucked in about four hours of trying to figure out what is going on. I was referred to this thread. Creating an HTML element with an embedded style cannot be the correct solution can it? This HTML gets created when embedding a Youtube video using the Rich Text editor <div style="padding-bottom: 56.25%;" class="responsive-object"> - the only way I can get rid of this style is to override it in my CSS using !important which is terrible and basically freezes any future changes to this style.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wagtail hallojs editor video embed with padding-bottom
I had a huge padding under the embedded video. I couldn't find a place explaining how to integrate wagtail's editor generated html. There's...
Read more >
How to add Padding in Html - Javatpoint
Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text...
Read more >
How To Adjust the Content, Padding, Border, and Margins of ...
In this tutorial, you will learn about the CSS Box Model, a model used to refer to the content, padding, border, and margins...
Read more >
How to Embed a YouTube Video in WordPress (4 ways)
The easiest way to embed YouTube videos in WordPress is to simply paste the URL onto your page/post edit screen. Make sure you're...
Read more >
Media embed - CKEditor 5 Documentation
to embed media like in the following examples. You can also paste the media URL directly into the editor content and it will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found