1
Hey there, fellas. I’m doing a little project and I’m having difficulty using grid and sidenav bootstrap, I want to make a fixed menu side, no responsiveness with 30% of the screen size and the other 70% I will implement tables and Forms, someone could help me?
The side menu I managed to make a part, I just don’t know if it’s correct.
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/styles.css">
<title>CRUD</title>
<style>
#sidebar-wrapper {
left: -300px;
width: 300px;
background-color: #51A8B1;
color: white;
position: fixed;
height: 100%;
z-index: 1;
}
.sidebar-nav {
position: fixed;
top: 0;
margin: 0;
padding: 0;
width: 300px;
list-style: none;
}
.sidebar-nav li {
font-size: 20px;
text-indent: 55px;
line-height: 70px;
}
.sidebar-nav li a {
color: white;
display: block;
text-decoration: none;
}
.sidebar-nav li a:hover {
background: #448B93;
color: white;
text-decoration: none;
}
.sidebar-nav li a:active, .sidebar-nav li a:focus {
text-decoration: none;
}
#ufpb-logo{
margin-top: 50px;
margin-bottom: 50px;
padding-left: 110px;
}
#sidebar-wrapper.sidebar-toggle {
transition: all 0.3s ease-out;
margin-left: -200px;
}
#main{
padding-left: 70px;
}
@media (min-width: 768px) {
#sidebar-wrapper.sidebar-toggle {
transition: 0s;
left: 200px;
}
}
</style>
</head>
<body>
<!--SideNav-->
<div class="container">
<div id="sidebar-wrapper" class="sidebar-toggle">
<ul class="sidebar-nav">
<div class="row" id="ufpb-logo">
<a href="#"><img width="111px" height="160" src="assets/img/ufpb2.png"/></a>
</div>
<li>
<a href="#item1">Produtos</a>
</li>
<li>
<a href="#item2">Entradas</a>
</li>
<li>
<a href="#item3">Saídas</a>
</li>
<li>
<a href="#item3">Resumo</a>
</li>
<li>
<a href="#item3">Sair</a>
</li>
</ul>
</div>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="/js/jquery.min.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</body>