I’ve made my own jquery pagination where when you press the page button, the current page disappears and then the page , which corresponds to the button number, fades in. The problem is that page 2 appears but a little lower than where page 1 appears and page 3 is even lower than where page 1 was. Every page that appears is supposed to be at the same position where page 1 starts out at.
Share
It’s because you have a
<br>between the page elements.This break tag adds extra space above your pages.
Between page 1 and 2 there is one
<br>, So page 2 has 1 empty line above it.Between page 1 and 3 there are two
<br>‘s and so there are 2 empty lines above page 3.