• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with label scroll

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
CSS position fixed
 
simon tiberius
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic