Find Div height and a string in the middle

Hi Friends,

I have more content in my div element. I want to display the content according to the height of the page with pagination.

My div content height is 4000.

Height of the First page is 400. second page should start from 401 to 800. But beginning of the second page i need to add “continue” string.

I dont know to add this string. Plz help me out. This is very important.

Thank you so much.