• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.
0 votes
Hi everybody!

The flip book pages always stuck at the top of the browser window. How can I make align them vertically in the center?


asked in how_to by (120 points)
Are you using Desktop Scaling?
Yes I do. The size is perfect put I want to have the vertical position in the center.

1 Answer

0 votes

1) Try applying the following code as a .css file in the Resources section of the in5 dialog (how to attach resources):

div#container {
    transform-origin: 0px 50% 0px !important;



Edit this line in assets/in5.config.js:

$('#container').css(prefix.css+'transform', 'translateX('+xTrans+'px) scale('+scaleFactor+','+scaleFactor+')').css(prefix.css+'transform-origin','0 0 0');

To instead read:

$('#container').css(prefix.css+'transform', 'translateX('+xTrans+'px) scale('+scaleFactor+','+scaleFactor+')').css(prefix.css+'transform-origin','0 50% 0');
answered by (172k points)
Both does not work :-(