I was hoping to increase the height of the google map module in Divi, but my CSS code does not work and does not understand why. I insert the following code in Advanced> Custom CSS> The main element of the map module
.et_pb_map { height: 440px; }
Any suggestions would be very helpful!
Absolute Map for Divi Theme
position:relative;
.absolute_map .et_pb_map { position: absolute; overflow:visible; height: 100%; }
padding height.
padding
height
#map ,#map .et_pb_map {padding-bottom: 56.25%}
, . #map .
#map
, . .
, , , - iframe - , .
JSFiddle
(Advanced > Custom CSS > Main Element) Divi Builder, CSS.
height: 440px;
css > css. 440px.
! css
.et_pb_map { height: 440px !important; }
.
, API Google js.
/ , #div_gmap.
#div_gmap { height: 440px; }
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script> <div id="div_gmap"></div> <script> var map; function initMap() { map = new google.maps.Map(document.getElementById('div_gmap'), { center: {lat: 22.3039, lng: 70.8022}, zoom: 12 }); } </script>
, , css , .
, CSS , - chrome dev.
Shift+ Ctrl + I ( cmd + alt + I, ) -. , . , DOM, <div class="et_pb_map">...</div>, ctrl + f et_pb_map.
Shift+ Ctrl + I
cmd + alt + I
<div class="et_pb_map">...</div>
et_pb_map
, .
, , padding/margin , . , , . embed, <div class="et_pb_map" style="...">...</div>, .
<div class="et_pb_map" style="...">...</div>
Chrome Chrome
→ → CSS
.et_pb_map iframe {height: 400px !important; }
jsfiddle
, . , .. .map-height, :
.map-height
.map-height .et_pb_map { overflow:visible; height: 500px!important; }
:
.et_pb_map {height:500px;}
Source: https://habr.com/ru/post/1681003/More articles:Virtualenv says "root" instead of virtualenv? - pythonHow to copy files from Google Compute Engine to a local directory - google-compute-engineKeyboard conversion for Onenote 2016 on Windows 7 - onenoteTemplate creation error: the compiler selects the wrong overload function - c ++Call the undefined method Illuminate \ Database \ Query \ Builder :: notify () Laravel 5.4 - phpHow to achieve true parallelism using thread in Python? - pythonA multi-threaded Python script takes more than a non-threaded script - pythonWhat is the difference between updated hook and watchers in VueJS? - vue.jsНевозможно Inter-Lock между процессами при использовании модуля многопроцессорности в Python - pythonvuejs2 and the selected choice problem - vue.jsAll Articles