Hey there, I'm dealing with the issue of overflowing content not fitting on the next A4
page.
My situation:
- I'll begin with a single
A4
page - When the content from the previous
A4
page overflows, I want the remaining content to move to the nextA4
page - i.e., page 2 - This process must continue until reaching the Nth page
Below is a working jquery
code, but I'm looking to implement it in Vue
. You can find the existing solution here: https://jsfiddle.net/tk8rwnav/31/
Question: How do I apply the same solution in vue
as demonstrated above with jquery
?
const app = new Vue({
el:'#app',
data(){
return {
content: `<div class="A4">
<h1>
Title
</h1>
...
// The rest of the HTML content goes here
...
</div>`
}
}
})
.A4 {
background: white;
width: 21cm;
height: 29.7cm;
display: block;
margin: 0 auto;
padding: 10px 25px;
...
// Additional CSS styles for A4 page layout
...
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<span v-html="content"></span>
</div>