Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adjust Height of Map in Divi

Tags:

css

wordpress

Was hoping to increase the height of the google map module in Divi but my CSS code is not working and do not understand why. I am pasting the following code within Advanced > Custom CSS > Main Element of the Map Module

.et_pb_map {
     height: 440px;
}

Any suggestions would be very useful!

like image 928
user3682157 Avatar asked Nov 08 '22 19:11

user3682157


1 Answers

Absolute Map for Divi Theme

  1. Add the following CSS in the Row Settings/ Custom CSS/ Column "1" Main Element (column number is where you will put the map):
    position:relative;
  1. Add a Class to Map Module. In this example the CSS Class is absolute_map Add the following CSS in the Custom CSS box:
.absolute_map .et_pb_map {
    position: absolute;
    overflow:visible;
    height: 100%; 
}
  1. Be happy!
like image 121
Razvan Stroici Avatar answered Nov 15 '22 11:11

Razvan Stroici