---
title: Position sticky inside element
description: Place the sticky player inside a specific HTML element using a CSS query selector to keep it within that element.
---

[Skip to content](https://helpdesk.target-video.com/hc/en-us/articles/13723267575570-position-sticky-inside-element#main-content)

[More support](https://helpdesk.target-video.com/kb-tickets/new?hsLang=en)

[![TargetVideo Logo](https://helpdesk.target-video.com/hs-fs/hubfs/targetvideo_logo_standalone_dark-3.png?width=300&height=49&name=targetvideo_logo_standalone_dark-3.png)](https://target-video.com/)

Open main navigation

Close main navigation

- [More support](https://helpdesk.target-video.com/kb-tickets/new)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [TargetVideo Knowledge Base](https://helpdesk.target-video.com/?hsLang=en)
2. [Video Player](https://helpdesk.target-video.com/video-player?hsLang=en)
3. [Sticky Player](https://helpdesk.target-video.com/video-player?hsLang=en#sticky-player)

# Position sticky inside element

## Place the sticky player inside a specific HTML element using a CSS query selector to keep it within that element.

To place the sticky player inside a particular HTML element, you can use a CSS query selector that points to the element you want on your webpage. This will ensure the player stays sticky within that specified element.

You can choose from any of the supported selectors, which are explained [here](https://www.w3schools.com/jsref/met_document_queryselector.asp).

For instance, if you want the sticky player to be inside a specific div, you would enter **#myDivId** in the field. Similarly, if you aim to target an element by class, you would enter **.myClass**.

For example, if you want the sticky player to be inside every second paragraph on a page, you would enter **p:nth-of-type(2)**.

- [Video Player](https://helpdesk.target-video.com/video-player?hsLang=en#main-content)

    - [Player Templates](https://helpdesk.target-video.com/video-player?hsLang=en#player-templates)
    - [General Settings](https://helpdesk.target-video.com/video-player?hsLang=en#general-settings)
    - [Amplify Engagement](https://helpdesk.target-video.com/video-player?hsLang=en#amplify-engagement)
    - [Sticky Player](https://helpdesk.target-video.com/video-player?hsLang=en#sticky-player)
    - [Looks and Skins](https://helpdesk.target-video.com/video-player?hsLang=en#looks-and-skins)
    - [Frame](https://helpdesk.target-video.com/video-player?hsLang=en#frame)
    - [Share Options](https://helpdesk.target-video.com/video-player?hsLang=en#share-options)
    - [Ads](https://helpdesk.target-video.com/video-player?hsLang=en#ads)
    - [Plugins](https://helpdesk.target-video.com/video-player?hsLang=en#plugins)
    - [Event Callbacks](https://helpdesk.target-video.com/video-player?hsLang=en#event-callbacks)
    - [Advanced Player Configuration](https://helpdesk.target-video.com/video-player?hsLang=en#advanced-player-configuration)
- [Outstream Ad Units](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#main-content)

    - [Ad Unit Templates](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#ad-unit-templates)
    - [In-content Ad Unit General Settings](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#in-content-ad-unit-general-settings)
    - [In-content Ad Unit Sticky Feature](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#in-content-ad-unit-sticky-feature)
    - [In-content Ad Unit - Ads](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#in-content-ad-unit-ads)
    - [In-slide Ad Unit General Settings](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#in-slide-ad-unit-general-settings)
    - [In-slide Ad Unit - Ads](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#in-slide-ad-unit-ads)
    - [Event callbacks](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#event-callbacks)
    - [Plugins](https://helpdesk.target-video.com/outstream-ad-units?hsLang=en#plugins)
- [Monetization](https://helpdesk.target-video.com/monetization?hsLang=en#main-content)

    - [Ad Sources](https://helpdesk.target-video.com/monetization?hsLang=en#ad-sources)
    - [Ad Schedules](https://helpdesk.target-video.com/monetization?hsLang=en#ad-schedules)
- [Content Management](https://helpdesk.target-video.com/content-management?hsLang=en#main-content)

    - [Video Management](https://helpdesk.target-video.com/content-management?hsLang=en#video-management)
    - [Video Import](https://helpdesk.target-video.com/content-management?hsLang=en#video-import)
    - [Playlists Management](https://helpdesk.target-video.com/content-management?hsLang=en#playlists-management)
    - [Embedding](https://helpdesk.target-video.com/content-management?hsLang=en#embedding)
    - [Livestream](https://helpdesk.target-video.com/content-management?hsLang=en#livestream)
    - [OTT Application](https://helpdesk.target-video.com/content-management?hsLang=en#ott-application)
    - [Syndication](https://helpdesk.target-video.com/content-management?hsLang=en#syndication)
    - [Digital Rights Management](https://helpdesk.target-video.com/content-management?hsLang=en#digital-rights-management)
    - [Content Units](https://helpdesk.target-video.com/content-management?hsLang=en#content-units)
    - [AI Content Matching](https://helpdesk.target-video.com/content-management?hsLang=en#ai-content-matching)
- [General](https://helpdesk.target-video.com/general?hsLang=en#main-content)

    - [Site Administration](https://helpdesk.target-video.com/general?hsLang=en#site-administration)
    - [User Administration](https://helpdesk.target-video.com/general?hsLang=en#user-administration)
    - [Announcements](https://helpdesk.target-video.com/general?hsLang=en#announcements)
    - [FAQs](https://helpdesk.target-video.com/general?hsLang=en#faqs)
- [Billing](https://helpdesk.target-video.com/billing?hsLang=en#main-content)

    - [Payment](https://helpdesk.target-video.com/billing?hsLang=en#payment)
    - [Bandwidth](https://helpdesk.target-video.com/billing?hsLang=en#bandwidth)
- [Advertising, Reports & Analytics](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#main-content)

    - [Ads Playback & Troubleshooting](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#ads-playback-troubleshooting)
    - [Reports & Analytics](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#reports-analytics)
    - [Pre Bidding](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#pre-bidding)
    - [Contextual Ads Targeting](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#contextual-ads-targeting)
    - [Premium Demand Program](https://helpdesk.target-video.com/advertising-reports-analytics?hsLang=en#premium-demand-program)
- [Platform Updates](https://helpdesk.target-video.com/platform-updates?hsLang=en#main-content)

    - [TargetVideo Platform Release 8.0](https://helpdesk.target-video.com/platform-updates?hsLang=en#targetvideo-platform-release-8-0)
- [TargetVideo WP Plugin](https://helpdesk.target-video.com/targetvideo-wp-plugin?hsLang=en)

[![TargetVideo Logo](https://helpdesk.target-video.com/hs-fs/hubfs/targetvideo_logo_standalone_dark-3.png?width=300&height=49&name=targetvideo_logo_standalone_dark-3.png "TargetVideo Logo")](https://target-video.com)

Koppstrasse 16, 81379, Munich, Germany

<https://www.linkedin.com/company/targetvideo-gmbh/> <https://www.instagram.com/wearetargetvideo> <https://www.facebook.com/bridtv/> <https://www.twitter.com/bridtv>

Copyright © 2025, TargetVideo GmbH