Created
March 29, 2016 10:56
-
-
Save siamkreative/f38f9fefcd494b67c1ca to your computer and use it in GitHub Desktop.
Adds a responsive wrapper to WP Google Maps Shortcode https://wordpress.org/support/view/plugin-reviews/wp-google-maps-shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gmap { | |
position: relative; | |
padding-bottom: 50%; // This is the aspect ratio | |
height: 0; | |
overflow: hidden; | |
} | |
.gmap > .wp_gmaps_canvas { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100% !important; | |
height: 100% !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment