0
A fixed element - Fixed - is positioned relative to the "viewport", it means that it will always be in the same place even if there is scrolling on the page.
As well as relative, properties top
, right
, bottom
and left
are also used.
I’m sure you noticed a fixed element in the right corner of the screen, I’m giving you permission to observe it now, and here’s the CSS applied to it:
.fixed {
position: fixed;
bottom: 0;
right: 0;
width: 200px;
background-color: white;
}
<div class="fixed">
Oi! eu estou fixo
</div>
How do you keep moving ?
– RickPariz