WordPress.org

Forums

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

  1. danrocha
    Member
    Posted 2 years ago #

    Hello!

    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:
    http://ddrocha.com/map-test/

    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
    Daniel

    http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/

  2. alexanderzagniotov
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi...
    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