2

I have a div that contains an object "linked" to a .pdf document.

Is there a way to change the scrollbar style either with css or javascript/jquery?

<div id="container">
  <object data="document.pdf" type="application/pdf" width="100%" height="100%">
  </object>
</div>

Another question: I tried to pass data object in this way:

<object data="document.pdf#view=Fit" type="application/pdf" width="100%" height="100%">
</object>

But pdf don't fit to the div.. where I'm wrong?

Edit

Starting from more simply example, I try to hide scrollbar following this document, using this code fiddle.

Doesn't work.

Is the problem the browser? I'm using Chrome on Ubuntu.

Community
  • 1
  • 1
Luca Davanzo
  • 21,000
  • 15
  • 120
  • 146

1 Answers1

0

For your 1st question, use the below URL,

http://jamesflorentino.github.io/nanoScrollerJS/

Hope this url will help you.

Phoenix
  • 1,470
  • 17
  • 23