Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with label scroll

 
simon tiberius
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a div. within this div, a label on top and many buttons under the said label (so many buttons that the div now has v-scrollbar). I want the label to stay where it is when scrolling the div down using this code:

it works fine, but it's not very smooth. sometimes the label is seen to be dragged up/down when scrolling before bouncing back to its original spot. how can I make it completely stay where it is without being dragged along with the scroll, not even a little? thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS position fixed
 
simon tiberius
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, tried that, but there's a problem when scrolling left or right. it stayed where it is. I just need it to scroll smoothly and stay fixed for vertical, not horizontal. thanks for the reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic