• Resolved jwill4l

    (@jwill4l)


    Hi.

    Is there any way to reduce the player statistics table font size from a player profile?

    Right now I have about 14 stats to show and I don’t like the scrollable bar, to be honest.

    I’ve tried to change the CSS, but I’m not sure which data table I have to modify in the custom CSS box.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you have a link to the table, I’m sure Roch will be able to help you out.

    Thread Starter jwill4l

    (@jwill4l)

    Sure.

    https://dbasket.es/jugadores/marshon-brooks/

    Like the one in the stats profile.

    Thanks for helping, @gator8 ! Indeed a link is always helpful.

    @jwill4l

    Thanks for reaching out! Here that table doesn’t seem to be scrollable but we can still change its font sizes. Add the following code in your custom css field ( Wp admin > SportsPress > Settings > General > Custom CSS ) and let us know how it works:

    .single-sp_player .sp-player-statistics {
    	font-size: 11px !important;
    }

    Thanks!

    Thread Starter jwill4l

    (@jwill4l)

    Hi.

    Yep, that worked for the font size. However, I’ve realized that the real problem is caused due to the size of the gap between columns in the table.

    I’ve tried with column-gap and column-width but it doesn’t work. Any possible solutions for it?

    Thanks.

    Hi!

    Thanks for your reply and I’m sorry for the delay.

    Sure, let’s change the cells padding with this code:

    #mvp-content-main td, #mvp-content-main th {
    	padding: 1px 2px;
    }

    The first number (1px) is regarding the top / bottom paddings, the second number (2px) is regarding the left / right padding. You can use any value you’d like there.

    Thanks!

    Thread Starter jwill4l

    (@jwill4l)

    Thanks Roch! I was thinking the CSS I should’ve changed from the beginning was the one from the MVP Theme. And yep, it was.

    Cheers!

    • This reply was modified 6 years, 11 months ago by jwill4l.

    I’m glad it’s resolved!

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Table font size’ is closed to new replies.