I tried to use methods from stack questions, but nothing works for me, despite project is very simple.
<div class="fluid-container">
<div id="app-row" class="row">
<div id="app" class="col-xs-5">
<div class="top-navbar">
Top
</div>
<div class="bottom-navbar">
Bottom
</div>
</div>
<div id="map-container" class="col-xs-7">
<div id="map"></div>
</div>
</div>
</div>
style.css
.fluid-container {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
width: 100%;
}
.row {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
width: 100%;
}
html, body, .fluid-container, #app-row, #map-container {
height: 100%
}
#app-row {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}
#map-container {
margin: 0 0 0 0 !important;
padding: 0 0 0 0 !important;
}
#map {
height: 100%;
width: 100%;
}
What I want to achieve:
Bottom is bottom of the page and Top is on the top of the page.
Try using navbar-fixed-bottom:
<div class="navbar navbar-default navbar-fixed-bottom">
<div class="container">
My footer
</div>
</div>
Just use position:fixed
on both div.
Here a fiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With