Comprehensive Google Map Plugin
[resolved] define height of map as 100%? (2 posts)

  1. danrocha
    Posted 3 years ago #


    I currently have a fullscreen website setup with a container in which i want to place a map with some coordinated. I managed to get 100% width, but how to get 100% height??

    Here is what's happening:

    I hoped it would be simple, but I can't find the answer to this anywhere! I wonder if no one ever wanted to make the map full screen, for example??

    Thank you all in advance for any help!

    Greetings from Beijing


  2. alexanderzagniotov
    Plugin Contributor

    Posted 2 years ago #

    Setting just the height to 100% wont work, unless you set all parent containers to a 100%. If you set the "height" property to 100%, it tries to expand to 100% of the parent element.

    If the parent elements such as ("body" and "html") have height set in pixels, then expanding to 100% of the parent element which has non-percentage height will be equal to nothing. At least this is my understanding of how CSS works...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Comprehensive Google Map Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic