I’m working on a web page that has multiple pages to display.
<div class='tab'>
<div class='page'>...</div>
...
<div class='page'>...</div>
</div>
but the web page’s height extends a long way beyond the length of 1 shown page. I’m afraid that what is causing this is that I generate all the elements for each page, and then hide the ones that don’t belong to page 1. But I’m not sure how to do this without increasing the height of the page.
Can anyone help me out?
You need to apply style=”display:none” to the elements you want hidden.
The following code will hide “all” underlying pages within the div class=’tab’ element.
The following code will hide each page you specify style=’display:none’ to
Whenever you want an element to be visibile again just change your “display:none” to “display:block”.