title: Google Maps - Fill remaining height
body: <p>I am working on a map application were I would like the Google maps DIV to fill the remaining height beneath the header. Code below.</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt;
    &lt;head&gt;
      &lt;title&gt;Map Application&lt;/title&gt;
  
      &lt;style type="text/css"&gt;
      html {
          height: 100%;
      }
      body {
          height: 100%;
          margin: 0;
          padding: 0;
      }
      #map_canvas {
          margin: 0;
          padding: 0;
          height: 95%;
          width: 100%;
      }
      @media (max-width: 767px) {
          #start_lat, #start_lng, #dest_lat{
            margin-bottom: 0.5em;
        }
    }
  &lt;/style&gt;
  
  &lt;!-- Bootstrap --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"&gt;
  
  &lt;!-- Fontawesome --&gt;
  &lt;script src="https://use.fontawesome.com/2eede759bf.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    var map;
    var markers = [];
    var path;
    var bounds;
    function initialize() {
      var mapOptions = {
        center: new google.maps.LatLng(-25.363, 131.044),
        zoom: 15,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;nav class="navbar navbar-expand-lg navbar-light bg-light"&gt;
        &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
            &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
          &lt;form class="form-inline my-2 my-lg-0 mx-auto" id="map-data" action="" method="POST" align="center"&gt;
            &lt;!-- Here goes a form with a few input fields and buttons. --&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  &lt;div id="map_canvas"&gt;&lt;/div&gt;
  &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key={{ GMAPS_API_KEY }}&amp;callback=initialize"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have tried with absolute positioning but it seems like the Google Map overrides that with relative positioning, please advise.</p>
  
  <p>Thank you.</p>