I made a layout with a fixed sidebar, everything is ok, but what is not working and when will I use it in mobile version (screens with resolution less than 768px).
I need it when it is at a resolution lower than 768px (Mobile) the menu is at the top and the contents below.
My code is as follows:
html, body {
height: 100%;
}
.container-fluid {
height: 100%;
}
.sidebar-menu {
height: 100%;
background: #424c56;
background-size: 100%;
background-repeat: no-repeat;
position: fixed
}
.content-wrapper {
background: #090;
float: right;
}
@media(max-width:768px) {
html, body {
height: 0;
}
.container-fluid {
height: 0;
}
.content-wrapper {
float: none;
}
.sidebar-menu {
height: 0;
background: #424c56;
position:static;
}
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid" style="margin:0; padding:0;">
<aside class="col-md-3 col-sm-3 col-xs-12 sidebar-menu">ada
<nav>
<ul>
<li>Quem Somos</li>
<li>Quem Somos</li>
<li>Quem Somos</li>
<li>Quem Somos</li>
</ul>
</nav>
</aside>
<section class="col-md-9 col-sm-9 col-xs-12 content-wrapper">This template has a responsive menu toggling system. The menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will appear/disappear. On small screens, the page content will be pushed off canvas.
Make sure to keep all page content within the #page-content-wrapper.</section>
</div>
using this code, because at higher resolutions for tablet and desktop it is perfect! I think it's some css change I can not do!