img max-width: 100% breaks Google Maps
Most of us set a global max-width for responsive images, like so:
img {
max-width: 100%;
}
However, this breaks the images in Google Maps, such as the Info Window shadow and StreetView icon.
Either don't set all images globally, or reset Maps images using a custom container:
#map img {
max-width: none;
}
Written by Matt Stow
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#