I am having problems setting the height of a flex item to the 100% of the height of the father. As far as I know, declaring height: 100%
or even height: inherit
should do the trick. However, that is not working.
Here is the code:
<nav
class="navbar navbar-expand-md navbar-dark justify-content-end py-0"
style="background-color: navy"
>
<a class="navbar-brand mr-auto" style="font-size: 40px;" href="/">Logotipo</a>
<div id="search-box">
<i class="fas fa-search"></i>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="main-nav" class="collapse navbar-collapse flex-grow-0 text-right">
<div class="navbar-nav stroke-hover">
<a class="nav-item nav-link flex-grow-0 active" on-tap="changePage">Noticias</a>
<a id="statistics" class="nav-item nav-link flex-grow-0" on-tap="changePage">Estadísticas</a>
</div>
</div>
</nav>
And here is the code snippet.
The element I am tryng to give the full height is div#search-box
.