21 July 2021

How to make a section sticky in specific div (Section) in HTML/CSS?

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

How to add re-captcha v3 on all Elementor forms using coding?

 Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){     ?> <script src="https://www...