react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Cannot change pagination styling

Open bogannathan opened this issue 8 years ago • 5 comments

Is there any way to change the styling of the pagination list? I would like to have it centered under the table, but it by default adds columns that push it to the right. Is this a change I can do with this package?

Really appreciate it, looks good so far!

bogannathan avatar Mar 21 '18 05:03 bogannathan

Hi @bogannathan:

We're sorry for that so far react-bootstrap-table2 is not able to allow users to customize classNames or inline-style for pagination bar. For this part any PR is welcomed.

However, if it's bothering about the alignment, the following solution based on existing class does work but not recommended.

.react-bootstrap-table-pagination-list {
  text-align: center;
  transform: translateX(-50%);
}

.react-bootstrap-table-page-btns-ul {
  float: none;
}

chunming-c avatar Mar 24 '18 09:03 chunming-c

Thanks for letting me know! I appreciate it

bogannathan avatar Mar 25 '18 17:03 bogannathan

let's close it firstly, we will overall have a customization for every components, thanks

AllenFang avatar Mar 30 '18 09:03 AllenFang

@AllenFang I have tried this. it places the component in the center but the numbers are still aligned to the left

shorif2000 avatar Jun 22 '19 20:06 shorif2000

Just use this, this will also take care of more pages and move it correct for that situation. .react-bootstrap-table-pagination-list { display: flex; justify-content: end; }

FreddyCode95 avatar May 03 '23 14:05 FreddyCode95