bozdoz / wp-plugin-leaflet-map

Add leaflet maps to Wordpress with shortcodes
https://wordpress.org/plugins/leaflet-map/
GNU General Public License v2.0
140 stars 71 forks source link

Height setting does not accept percentage values #225

Closed sm8ps closed 4 months ago

sm8ps commented 1 year ago

Specifying height="50%" results in a non-visible map, regardless if in the short-code itself or in the general settings. I have seen #144 but that does not clarify things to me.

bozdoz commented 1 year ago

This is a css problem. 50% is ambiguous. The question is "50% of what?". Maybe try "50vh" which is 50% of the viewport height. Otherwise you could do a search for "how to set something to 50% height in css"

sm8ps commented 1 year ago

Many thanks for this explanation and the concise answer, @bozdoz! I hope others may find it as helpful as I did.