1
I’m not being able to make my menu responsive, I mean, in case I put a lot of information in the center of the container it breaks, I’d like this menu to extend or something similar to that... How would you do?
Would you like it not to be this blank space, is there any way? Type like this (image below), but with content
My HTML and CSS codes are:
nav {
background-color: #2f3e53;
}
.nav-wrapper a.button {
margin: 0% 0% 0% 3%;
display:none;
}
.barra-lateral {
background-color: #697586;
color:white;
width:30%;
font-size:1.30em;
}
li {
list-style-type: none;
padding: 2% 5%;
}
.container.corpo {
margin-left:40%;
margin-top:-28%;
padding-top:2%;
width:60%;
}
footer{
margin-top: 26%;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<nav>
<div class="nav-wrapper">
<!--<a href="#" class="brand-logo"><img src=" {{ asset('assets.Painel.img.logo.png') }}"></a>-->
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="">Perfil </a></li>
</ul>
<a class="button"><i class="fas fa-bars"></i></a>
</div>
</nav>
<div class="barra-lateral">
<li><i class="fas fa-user"></i> Perfil
<ul>
<li>Editar Perfil</li>
</ul>
</li>
<li><i class="fas fa-home"></i> Home </li>
<li><i class="fas fa-clipboard"></i> Cursos
<ul>
<li>Adicionar Curso</li>
<li>Editar Curso</li>
<li>Excluir Curso </li>
<li>Consultar lista de Cursos</li>
</ul>
</li>
<li><i class="fas fa-clipboard"></i> Categoria de Cursos
<ul>
<li>Adicionar Categoria de Curso</li>
<li>Editar Categoria de Curso</li>
<li>Excluir Categoria de Curso </li>
<li>Consultar Categoria de lista de Cursos</li>
</ul>
</li>
<li><i class="fas fa-gifts"></i> Combos </li>
<li><i class="fas fa-newspaper"></i> Notícias </li>
<li><i class="far fa-newspaper"></i> Categoria de Notícias </li>
<li><i class="fas fa-users"></i> Clientes </li>
<li><i class="fas fa-smile"></i> Parceiros </li>
</div>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Aos usuários</h5>
<p class="grey-text text-lighten-4">Caso encontre algum bug no sistema, por favor informar imediatamente</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2019 Instituto Técnico Profissionalizante
</div>
</div>
</footer>
The part of container
it’s not mine, I’m using the framework materialize to help me with some things, I’m also using for front part the Laravel Rail system
If I haven’t been clear enough, I’ll add more information.
Cara edits your question and also puts HTML, without it it is difficult to answer...
– hugocsl
Okay, I’ll edit the info.
– user152996
Dude but in your HTML you don’t even have the footer, it is very different from what the image represents... The ideal is to put a code to better simulate the problem you have there, but only with this code does not match the image
– hugocsl
@hugocsl is now correct, I added the materialize scripts and the missing footer part of my footer.
– user152996