Method: center: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Centers the flipbook depending on how many pages are visible.  The center method changes the CSS <tt>margin-left</tt> property of <tt>#flipbook</tt> as way to center the flipbook. Therefore, if you need to change the margin-left of the flipbook, it's recommend to insert the flipbook in a container to use its the margin properties.
Centers the flipbook depending on how many pages are visible.  The center method changes the CSS <tt>margin-left</tt> property of <tt>#flipbook</tt> as way to center the flipbook. Therefore, if you need to change the <tt>margin-left</tt> of the flipbook, it's recommend to insert the flipbook in a container to use its the margin properties.





Revision as of 16:00, 6 July 2012

Centers the flipbook depending on how many pages are visible. The center method changes the CSS margin-left property of #flipbook as way to center the flipbook. Therefore, if you need to change the margin-left of the flipbook, it's recommend to insert the flipbook in a container to use its the margin properties.


This method does not have parameters.

Example:

$("#flipbook").turn("center");


<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>