Cómo bloquear los elementos del desplazamiento CSS

#my_element{
  position: fixed;
  /*you can assign values like top, right, bottom, left*/
}
/*this will lock the element on the screen and it won't move along the
scrolling*/
Cloudy Caribou