Skip to content

Instantly share code, notes, and snippets.

View lvnam96's full-sized avatar
🐧
why are we still here? just to suffer?

nam lvnam96

🐧
why are we still here? just to suffer?
View GitHub Profile
@lvnam96
lvnam96 / README.md
Created November 19, 2019 08:45 — forked from magnetikonline/README.md
Responsive embedding of Google Maps (or anything <iframe> embedded really).

Responsive Google Maps embedding

Simple technique for embedding Google Maps <iframe>'s responsively using a padding-bottom percentage trick, which when applied to a block element will be calculated as a percentage of the element width - essentially providing an aspect ratio.

This technique should work on anything that is <iframe> embedded from your social network/service of choice.