Skip to main content

July 10, 2023

Embed a Responsive Google Map in Webflow: Complete Tutorial

3 min read

πŸ‘‹ 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>

‍

marketing health check clipboard showing score

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.

Stop losing deals to a website that's holding you back.

Book a 30-minute strategy session. You'll leave with a clearer picture of what your site needs to do and a rough budget range, whether you hire us or not.

background cta image collage of websites

Other posts in this category

video thumbnail showcasing video and how to build trust with testimonials in the background

How to build trust quickly with potential clients

Building trust with potential clients is something that will be the difference between making a sale or not. Here's how you can build trust quickly.

A three-way comparison graphic: three website mockups side by side labeled DIY Builder, Template, and Custom, each with a small price tag and a "best when" note beneath it, and an arrow underneath showing the progression as a business grows.

Is a Custom Website Worth It, or Should I Use a Template or DIY Builder?

Custom, template, or DIY builder? Here's how the three options compare, plus a simple decision framework.

confetti over Vimeo Video playing

How to Add a Confetti Animation When a Vimeo Video Starts Playing

Learn how to trigger a canvas confetti animation when a Vimeo video starts playing using the Vimeo Player API play event