I have built out a custom pagination setup for a small web-app I am building using react-bootstrap
. I have got all the integration and pagination to work correctly. I am relatively new to react
/ bootstrap
& have NOT done a lot of css
. I want to avoid css
to the extent possible, which is why I chose to work with react-bootstrap
The issue I am having is with not being able to make my pagination appear in the center of the block:
My react hook looks like this:
return (
<div>
<div align="center">
<div className="p-3">
<Disclaimer/>
</div>
<Pagination size="lg" class="text-center">
{pages}
</Pagination>
{custom_cards}
<Pagination size="lg" class="text-center">
{pages}
</Pagination>
</div>
</div>
);
I know the fix is here:
<Pagination size="lg" class="text-center">
{pages}
</Pagination>
I have tried align
and other things like text-center
. Being new, I don't have the right keywords to power a good search result for me on web. If you have any leads here I would appreciate it.