372

How can I customize a scroll bar via CSS (Cascading Style Sheets) for one div and not the whole page?

7
  • 1
    Apply overflow:auto; just to that <div>. Any more background details? Commented Feb 12, 2012 at 18:23
  • I did that , but i need custom scrollbar , uhm.. design of scrollbar Commented Feb 12, 2012 at 18:24
  • Custom color? That's only supported in IE, and not in other modern browsers. This cannot be achieved using pure CSS. Commented Feb 12, 2012 at 18:25
  • 1
    Simplest JS solution (CSS has no cross-browser support) - yaireo.github.io/fakescroll Commented Apr 26, 2015 at 22:50
  • See my answer here:
    Commented Sep 6, 2015 at 15:25