Good afternoon everyone. I'm trying to learn all the CSS positions and I've got all of them down but for some reason I can't get sticky to work and it is just acting like a relative.
Here is my HTML:
<!-- Sticky -->
<section id="sticky">
<h2>Sticky</h2>
<div></div>
<div id="middle"></div>
<div></div>
</section>
And here is my CSS:
#sticky #middle {
position: -webkit-sticky; /* Safari */
position: sticky;
top: 0;
}
If you know what I'm doing wrong please let me know...... it would really mean a lot.