π Hey Webflow fans! No matter if youβre new to web design or a seasoned pro, weβve have a web design tutorial thatβs going to level up your skills.
Want to add a Google Map to your Webflow site and make sure it looks good on any device? Youβre in the right place to learn how to embed google maps into your Webflow websites.
In this tutorial series, I am going to show you how to add these responsive maps to your web pages for free. You won't have to pay an API fee if you follow our step by step guide.
Make Your Site More User-Friendly with Maps
In the web design world, itβs all about making things easy and enjoyable for your visitors. Adding maps to your contact or location pages does just thatβit makes things more personalized and user-friendly.
A map allows your website visitor to see exactly where your store or business is located. They won't have to leave your site and open a new app.
The maps we will add will be responsive. They will look great on any device ββ whether someone is viewing your website on a computer or a phone.
Hereβs What You'll Learn:
- Starting with the Basics: Weβll show you how to get a Google Map iFrame into your Webflow static page. If youβve seen stuff like "width 600 height 450" or "frameborder 0 style border" and wondered what itβs all about, weβre breaking it down for you.
- Making Maps Responsive: Weβre not just adding any map; weβre adding a map that adjusts perfectly to different devices. Weβve got all the tips you need.
- Working with Dynamic Pages & Webflow's CMS: If youβre looking to add maps to dynamic content or using Webflowβs CMS, weβll cover how to display dynamic location data.
By the end of this tutorial, adding a responsive Google Map to your Webflow will be second nature. Youβll know the steps and understand why theyβre important, giving you a solid understanding of this key web design feature.
So, whether youβre working on a simple landing page, creating complex website, or just excited to pick up some new web design tricks, this tutorial is your go-to guide.
Ready to learn? Weβre walking you through every step, so youβll finish up feeling more confident and knowledgeable with your Webflow projects.
Keep experimenting, keep learning, and most importantly, keep that creative spark alive!
The Code
Here is the code I used in the video. You can use it in your Webflow project to add a dynamic Google map embed to your website.
<code>
<style>
/* add to comment out html to get it to show up
<div class="google-map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1434.9963863679732!2d-81.09214976184231!3d32.07993119881848!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88fb9e6425f2f7cb%3A0x5f5b405404dfc7aa!2sJohnson Square%2C Savannah%2C GA 31401!5e1!3m2!1sen!2sus!4v1677089842277!5m2!1sen!2sus" width="600" height="400" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
*/
/* START of CSS */
/*target the div with class google-map*/
.google-map {
overflow: hidden;
padding-top:56.25%;
position:relative;
}
/* target the iframe within the div with class .google-map iframe */
.google-map iframe {
left:0;
top:0;
right:0;
bottom:0;
height:100%;
width:100%;
position:absolute;
}
</style>
</code>
β
Your Marketing Isn't Bringing in Leads and You Can't Figure Out Why
Score your marketing across 7 key areas in 5 minutes and find out exactly what's holding back your leads and what to fix first.
Questions You Might Be Asking
No. The iframe embed method uses Google's free Maps Embed API, which doesn't require an API key or billing setup. You only need a key if you switch to the JavaScript Maps API for advanced customization like custom markers or styled map layers.
That percentage creates a 16:9 aspect ratio box that scales with its container width. Because padding-top percentages are calculated from the parent's width, the height grows proportionally as the viewport shrinks. The absolutely positioned iframe then fills that box, giving you a responsive map without fixed pixel dimensions.
Yes. Add a plain text field to your CMS collection for the embed URL, then drop an embed element inside your collection template and bind the src attribute to that field. Each CMS item will render its own map without any extra code per page.
Make sure you copied the full iframe src from Google Maps Share β Embed a map, and that the wrapper div has the google-map class exactly as written in the CSS. Also confirm the CSS lives inside a style tag in page settings or an embed β Webflow's Designer won't render iframes from custom code until you publish or preview.