Last edited: 2025/05/22
Ad holding “holds” an ad on the top of the viewport when the User scrolls down.
Example:
Example of Ad Holding in action
You can customize the ad holding behavior to better match the layout and user experience of your website by adjusting the following parameters:
Defines the vertical space (in pixels) between the held ad and the top of the page (i.e., the header).
<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" />
Good practice: Adjust this value to accommodate the height of your website’s top navigation menu.
</aside>
Specifies the amount of additional space shown below the held ad.
<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" />
Good practice: More space below the ad generally improves viewability. However, excessive spacing can negatively affect user experience.
</aside>
On this page: