Make map responsive?

More
8 months 3 weeks ago #12873 by Dima
Replied by Dima on topic Make map responsive?
I set width for my map to 0

I created addition CSS file with style
.my_responsive_map {
    height: 50vh !important;
}

upload to server

then add my class to my map and set load my CSS file



after that my map is responsive - width 100% and height 50% of visible.

You can check my demo, just resize browser window

joomla.zhuk.cc/index.php/zhosmmap-main/o...n/om-main-simple-map

You can see that height changing too

Don't forget support my developments: post review in JED , donate , help with thanslation ;)
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds

Donate


Go to top