Skip to content

Instantly share code, notes, and snippets.

@Pageboy
Last active May 1, 2018 10:42
Show Gist options
  • Save Pageboy/c03e6d7ad12e473e1e559365558baf96 to your computer and use it in GitHub Desktop.
Save Pageboy/c03e6d7ad12e473e1e559365558baf96 to your computer and use it in GitHub Desktop.
/*
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