html - Content & Google Map full height and width of each column in Bootstrap 2-column layout -
i using bootstrap 3.3.7 , have webpage fixed header, fixed footer , 2 responsive columns (sm-4 , sm-8).
what i'd is:
- have both columns fill rest of height between header , footer
- have right-hand column filled google map
- the text div position above map div when collapsed smaller screen
i've managed load in map cannot display full height , width of 1 column only. if try set width: 100% jumps full width of screen rather column. i've tried setting left div right 30% left 0 , right div left 70% , right 0 affects responsiveness on mobile device. found lots of other posts mess responsiveness i'm trying achieve.
this want achieve on larger screen:
and on smaller screen i'd 2 divs stack on top of each other in between header , footer.
this container both columns:
<div class="container"> <div class="row"> <div class="col-sm-4" id="testing_employers"> texttexttexttexttexttexttext </div> <div class="col-sm-8" id="map"> </div> </div> </div>
my full code (back recent "working" version) on fiddle: https://jsfiddle.net/havm4197/
i had same problem except on layout don't need footer , used different column size arrangement. believe conceptually same problem. on case make work this:
<!-- fixed navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="#">brand title</a> </div> </div> </nav> <div class="container-fluid"> <div class="row"> <div class="col-md-1"> <p>side text</p> </div> <div id="map" class="col-md-11 col-md-offset-1"> </div> </div> </div>
then used css:
#map { height: 100%; position: absolute; } html, body { height: 100%; padding-top: 25px; } .container-fluid { height: 100%; position: relative; }
please give try , let me know if worked needs.
Comments
Post a Comment