My goal is to design a component in Angular that resembles an A4 paper. When the user inputs content, the paper should expand based on a minimum height of 29.7cm.
Please note: The design requires only a single div element to maintain the flow of content across pages during editing.
I want to include page numbers at the bottom of the paper as the user types, updating every 27.9cm. These page numbers should be non-editable within the div.
Is it achievable with just HTML and CSS? Or do I need a new Angular component for this functionality?
The visual representation of the element is shown below:
Your guidance is much appreciated.
View the demonstration on StackBlitz here.
Take a look at how the expected paper layout appears here:
https://i.sstatic.net/Gslhu.png
Note the red page numbers indicating the progression of content entry.
When the content reaches another 29.7cm mark, the element should automatially append subsequent page numbers accordingly.