How to use Iframes
An inline frame (iframe) is a HTML element that loads another HTML page within the document.
It essentially puts another webpage within the parent page. They are commonly used for advertisements, embedded videos, web analytics and interactive content. Here's how to use the Iframes element in TeleportHQ.
Adding Iframes to the canvas
To add an Iframe to your project you just need to select it from the Elements panel, then drag and drop it in the canvas, in the container of your choice.
Changing Iframe content
To change the source of the Iframe and therefore the content displayed inside, go to the Right side panel and in the HTML section, in the src field, add the Source URL from the Iframe code snippet.
Customizing Iframes
Like any other element used in TeleportHQ you can customize Iframes using CSS rules. From the Right side panel, in the HTML section you can use the Allow field to add functionalities to your Iframe. From the other panels in the Right side menu you can: add CSS classes, change the Iframe’s size and position, add padding, margins, borders and more.
Updated on: 28/03/2025
Thank you!