I'm making an entire site with a common layout where, at left, there is a sticky div (aside menu). That div has to be sticky so it won't override the footer in the bottom, but its property doesn't work.
So I searched everywhere to find a solution: overflow, top-bottom-left-right. I searched for any overflow in any of the parents of the aside menu also with a script but I found none.
div.row {
display: flex;
padding-top: 3em;
}
aside#menu {
display: block;
flex: initial;
width: 250px;
min-width: 150px;
margin: 0;
font-size: 1rem;
height: 100%;
padding: 1rem;
position: relative;
float: left;
}
article {
flex: 1;
}
aside#menu div.sticky {
position: sticky;
position: -webkit-sticky;
top: 0;
}
<div class="row">
<aside id="menu">
<div class="sticky" id="sticky">
<h2>Variabili</h2>
<a href="variables.html#variables">Tipi di variabili</a>
<a href="variables.html#var_scopes">Variabili locali e globali</a>
<h2>Funzioni</h2>
<a href="functions.html">Funzioni</a>
<h2>Classi</h2>
<a href="classes.html">Classi</a>
</div>
</aside>
<article>
<div id="variables" class="content">
</div>
<div id="var_scopes" class="content">
</div>
</article>
</div>
<footer>
</footer>