I am trying to design basically a navbar that is vertical on desktop and horizontal on mobile.
Desktop:
Mobile:
My basic idea is to use a media query to make the elements inline-block for mobile:
@media (min-width: @screen-sm-min) {
.fluid-inline{
display: inline-block;
}
}
My doubt is with the markup.
I know it should be something along the following lines:
<div class="container-fluid">
<div class="row fluid-inline">
<div class="col-xs-3 col-sm-12">one</div>
<div class="col-xs-3 col-sm-12">two</div>
<div class="col-xs-3 col-sm-12">three</div>
</div>
<div class="map-container row fluid-inline">
<div id="map" class="">
</div>
</div>
</div>
This is somehow working but broken, the part that is breaking is the map container, might have something to do with the rows being inline?
Tried something like this:
<div class="col-sm-12">
<div id="map" class="">
</div>
</div>
But also not sure.
So my question is basically how the boostrap markup should be, what should be a row, and the cols I have to use.
Please note that this markup is not definitive and what I'm looking for is correct markup, so don't hesitate to restructure completely.
Also, I don't really need the actual code, the idea of the correct structure should be enough.