How do we embed a live iframe in webflow but ensure it does not mess with code

I tried embedding a bunch of iframes which work great on empty page but messes up on a page with bunch of elements.

I currently use separate css names & use important tags to force its enforcement. I was wondering if there is a right way to do so ?

Hi there,

When working with Code Embed elements, there are a few best practices to follow for optimal results:

The embedded content’s dimensions can be controlled by adding height=“100%” width=“100%” attributes to your custom code. This allows you to adjust the size directly through Webflow’s Style panel settings.

For proper integration, avoid including , , or tags in your custom code as these can interfere with your website’s layout. If you plan to use the same embedded content across multiple pages, consider converting your Code Embed element into a component for easier maintenance and consistency.

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

IFRAMES are generally CSS isolated so either;

  1. You have additional code outside of the IFRAME that’s affecting your page, or
  2. It’s the size of the IFRAME itself that’s disrupting your page.