Using  tag for pdf printing
I figured it out on my own.
To print &lt;div&gt; on different pages, it needs to be positioned relative.

So, I ended up putting all the existing &lt;div&gt; with position absolute into a &lt;div&gt; with position relative.

However, that is not sufficient enough, I also needed to fill in a simple &lt;br /&gt; tag as well.

This worked:

&lt;div id="page" style="position: relative;"&gt;

&lt;br /&gt;

&lt;div id="content" style="position: absolute;"&gt;

&lt;/div&gt;

&lt;/div&gt;