Last active
May 1, 2018 10:42
-
-
Save Pageboy/c03e6d7ad12e473e1e559365558baf96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
adding a scrolling text box to an InDesign page | |
You need to create a text boc and under export options name the as a div | |
with a class name of scroller | |
Then add this CSS file when exportin to the fixed layout ePub | |
Note: if you have a 2 page spread in Indesign and you are converting | |
spread to landscape, you can use the javascript gist here scroller.js | |
*/ | |
div.scroller { | |
position: relative; | |
border:1px solid silver; | |
} | |
div.scroller > div { | |
overflow: auto; | |
overflow-y:scroll; | |
overflow: scroll; | |
overflow-x:hidden; | |
-webkit-overflow-scrolling:touch; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment