.googlemap { height: 0; overflow: hidden; padding-bottom: 50%; position: relative; } .googlemap iframe { position: absolute; left: 0; top: 0; height: 100%; width: 100%; }