html - Google map iframe set height? -
i want embed google map location. when use iframe, goes 100% height. when set height
.google-maps iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 30% !important; }
map size looks ok it's using unwanted white space between footer. ifrmae
<div class="google-maps"> <iframe src="https://www.google.com/maps/embed/v1/place?q=place_id:chij-69hn5jz4jorzaymm3zi2o8&key=aizasydtljbjbpix73t57vhnihmkyk0u5p6mngi" width="600" height="200" frameborder="0" style="border:0"> </iframe> </div> .google-maps { position: relative; padding-bottom: 77.4%; height: 0; overflow: hidden; }
i want show 30% size of map. how can archive that?
you getting white space because use "padding-bottom: 77.4%;". use height: 30%;.
Comments
Post a Comment