# HTML pagination  It is a plugin for HTML document pagination to fit fixed-sized container. This operation is rather time-consuming, so, please, use this module carefully. ## How-to In a browser environment import `HTMLPagination` class and create it's instance: ```js import { HTMLPagination } from 'html-pagination'; const pg = new HTMLPagination( document.getElementById('content'), // HTML element with html content you want to paginate in it document.getElementById('container'), // HTML element which will display page content. It must add scrollbar on overflow 100 // Initial number of characters per page. Good value will increase speed of first page computation ); ``` It will compute text and html elements positions for future use, so you have to run it after you added html content to element with `content` id. Below you can see a common HTML+CSS implementation for `#content` and `#container` elements HTML: ```html