• Resolved Korjaw

    (@korjaw)


    Hello,

    How can i change rows height to smaller ?

    f.e. this work when is heigher, but smaller f.e. 12px not :/
    .tablepress-id-1 .row-2 td {
    height: 40px;
    }

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Setting the height will usually not work, but setting the padding should:

    .tablepress-id-1 .row-2 td {
      padding-top: 2px;
      padding-bottom: 2px;
    }

    If not, can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter Korjaw

    (@korjaw)

    It works, big thanks ! 🙂

    Thread Starter Korjaw

    (@korjaw)

    i have another problem with center table

    i used for table id width: auto; margin: 0 auto 1em; and it works when 1st header row is unmarked, table is center. I want pagination so i must marked 1st header row, but then table is align to left :/ Its a solution for this ?

    ok i fixed it 😛

    NOW problem: its possible to change height of header row ?

    .tablepress-id-1 .row-1 td {
    padding-top: 2px;
    padding-bottom: 2px;
    }
    this dont work 😛

    • This reply was modified 8 years, 6 months ago by Korjaw.
    • This reply was modified 8 years, 6 months ago by Korjaw.
    • This reply was modified 8 years, 6 months ago by Korjaw.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    the first row is a header row, so you must use the th HTML tag:

    .tablepress-id-1 thead th {
      padding-top: 2px;
      padding-bottom: 2px;
    }
    

    Regards,
    Tobias

    Thread Starter Korjaw

    (@korjaw)

    Yeah, right so simple.. thanks ! 🙂

    Last question (i hope :P), how change style of pagination “< Previous Next >”

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Thread Starter Korjaw

    (@korjaw)

    thanks, but this is only for arrows ?
    i want change font etc “Previous” “Next” too

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, my bad.
    For that, try something like

    .dataTables_paginate a {
    	color: #ff0000 !important;
    }

    Regards,
    Tobias

    Thread Starter Korjaw

    (@korjaw)

    Work, thanks ! 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Rows height’ is closed to new replies.