Make a section sticky in specific div (Section) in HTML/CSS.
<style>
.scrollsec {
height: fit-content;
line-height: 50px;
margin-top: 10px;
font-size: 30px;
padding-left: 10px;
position: -webkit-sticky;
position: sticky;
top: 104px;
}
</style>
No comments:
Post a Comment