I’m asking the same question again, now with more details, hopefully to receive effective solution.
In the code below the output aligned the printing to the right of the
try removing the div n just put your pagination php inside. because the way i see your div doesnt really do anything except floating to the right.
<td align="right"><?php echo pagination($total, $limit, $page); ?></td>
Have you tried:
.paginate{ text-align:right; }
And assign class paginate to your div?
Update
Decalre it as !important
.paginate{ text-align:right !important;}
See this demo, it works, so I think you have something else which is taking precedence over the rule.