2
Guys don’t know about css and would like to know how to create a menu that can have up to 5 options, so when I want to have only 4 options or 3 the menu width remains the same but div with the options fit the menu size, I will leave an example below
the first menu (first image) has five options and size 100% of the user’s screen, I would like when necessary one or 2 of the options to disappear and the menu to continue 100% of the screen and the options to be larger to cover all the space that was empty as it was in the second menu (second image), and Sorry if it got a little complicated to understand...
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>menu acesso rapido</title>
<style>
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 90px;
background-color: #005aa5;
border-radius: 4px;
color: #FFF;
text-align: center;
}
.__row-menu{
height: 80px;
width: 2px;
}
</style>
</head>
<body>
<div class="grid-container">
<div class="__col-menu">
<label>$
<p>Transferencia</p>
</label>
</div>
<div class="__col-menu">
<label>$
<p>Pagamento</p>
</label>
</div>
<div class="__col-menu">
<label>$
<p>Consultas</p>
</label>
</div>
<div class="__col-menu">
<label>$
<p>Gerenciamento</p>
</label>
</div>
<div class="__col-menu">
<label>$
<p>Teste</p>
</label>
</div>
</div>
</body>
</html>
It was very clear friend, but edit your question and include what you have code, just so we know what is the best option for your case, since this can be done in several ways... Include your CSS and HTML in the question, even if it isn’t working as expected
– hugocsl