What is it called when you have an object that stays on the screen when you scroll the page down?

1 replies
ex. billboard . com
the media player on the left stays in one spot while the rest of the page scrolls.
#called #object #page #screen #scroll #stays
  • Profile picture of the author RyanAndrews
    This can be achieved using CSS position:fixed
    Just specify a top+left and the object will never move.

    If you want something that "catches" as the user scrolls down, that's done using javascript, to toggle between position:fixed, and position:static
    {{ DiscussionBoard.errors[3422236].message }}

Trending Topics