Fixed positioning

noun

say it: “FIKST puh-ZISH-uh-ning” /fɪkst pəˈzɪʃənɪŋ/

CSS positioning that pins an element to the browser window, so it stays put while the page scrolls.

What is position: fixed?

Fixed positioning pins an element to the browser window, so it stays put while the page scrolls.

.chat-button { position: fixed; bottom: 20px; right: 20px; }

In a sentence

  • “The chat button uses fixed positioning, so it's always in the bottom corner.”

Level: Apprentice · More CSS terms at this level

Updated