I'm trying to put a 100% high google map into a Twitter Bootstrap container but it renders as 0px high.
From what I understand from Twitter Bootstrap: div in container with 100% height I added a css class to the container-fluid div with "height: 100%; min-height: 100%;", but it made no difference:
<body> <div class="container-fluid tall"> <div class="row"> <div class="col-md-6"> <div id="map-canvas"></div> </div> ... #map-canvas { width: 100%; height: 100%; margin-bottom: 15px; border: 2px solid #000000; } .tall { height: 100%; min-height: 100%; }
html, body { height:100%;}and also, all the ancestors of map-canvas will need a height set on them - for any percentage heights, you must have a height on all ancestors until a fixed height is found, if no fixed height is found then the percentage heights must go all the way back to the body and html tags