9/1/2023 0 Comments Disable auto scroll windows 7As a result the content is scrollable but overlay remains fixed. The div inside the overlay is instead just in position: static then the vertical scrollbar you see is related to that element. The overlay (created on-the-fly or already inside the page and made visible via display: block, it makes no difference) has position : fixed and overflow-y: scroll, with top, left, right and bottom properties set to 0: this style makes the overlay fill the whole viewport. ![]() ![]() Looking at current implementation of the pinterest site (it might change in the future), when you open the overlay a noscroll class is applied to the body element and overflow: hidden is set, thus body is no longer scrollable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |