Center slide numbering in xaringan


Is there a way to change the position of slide numbering in xaringan slides? For example, how can I move the number to the top and center of the slides?


Based on the info here, you can add the following to your my-theme.css file:

.remark-slide-number {
  font-size: 10pt;
  margin-bottom: -11.6px;
  margin-right: 10px;
  color: red; /* white */
  opacity: 1; /* default: 0.5 */

and play with margin-bottom and margin-right to get it to where you need it.

1 Like

Thanks for the hint
The following works:

.remark-slide-number {
  right: 50%

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.