Reply To: Mappress_Map responsive width

Home Forums MapPress Support Mappress_Map responsive width Reply To: Mappress_Map responsive width



I think I see the problem – the plugin sets width on the outermost div but the height is set on the inner canvas div. This works if the height is in pixels but not if it’s in %.

To make % height work you’ll need to either modify the template file ‘map_layout.php’ or use CSS. For CSS, if you give your container div the id ‘xyz’ something like this might work:

#xyz .mapp-layout { height: 100% }

Or maybe you could just include the height and width in the shortcode directly:

[mappress id="1" width="100%" width="480" height="480"]