How can I make the embed on my Webflow site full screen?
To make the embed on your Webflow site full screen, follow these steps:
Add an embed component: In Webflow, navigate to the page where you want to add the full-screen embed. Drag and drop an Embed element onto the desired section of the page.
Get the embed code: Obtain the embed code from the platform you're using, such as YouTube, Vimeo, or an external website. For example, if you're embedding a YouTube video, go to the video's page on YouTube and click the "Share" button. Then, select the "Embed" option and copy the provided code.
Paste the embed code: Return to your Webflow project and double-click on the Embed component you added. In the settings panel that appears on the right-hand side, paste the embed code into the code field.
Set the embed to full screen: To make the embed full screen, add CSS code to the Embed component. Select the Embed component and click on the "Settings" tab in the right-hand panel. Scroll down to the "Custom attributes" section and click the "+" button to add a new attribute. Set the attribute name as
style
and the value asdisplay: block; position: absolute; top: 0; bottom: 0; right: 0; left: 0; width: 100%; height: 100vh;
.Preview and adjust: Save your changes, preview the page, and adjust the embed's position and size in the Designer as needed. You may need to adjust other elements on the page to accommodate the full-screen embed.
By following these steps, you can make the embed on your Webflow site full screen and provide visitors with an immersive viewing experience.
Additional questions:
- How do I add an Embed component in Webflow?
- Can I make an external website full screen within the Webflow platform?
- What other attributes can I customize for the Embed component in Webflow?