• Resolved Jure_S

    (@jure_s)


    I can’t get header smaller.

    link

    First table is made with TablePress, others with clasic WP editor.

    In Custom css I have:

    .tablepress-id-1 .row-1 .column-1 {
    	text-align: center;
    }
    
    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    	background-color: #C0C0C0;
    }
    
    .tablepress-id-1 .row-1 {
    	height: 50px;
    	padding: 0;
    	border: none;
    	margin: 0;
    	padding: 0;
    }
    
    .tablepress-id-1 {
    	width: auto;
    	margin: 0 auto 1em;
    }

    If I change height to smaller I don’t get results. It works only if I
    increase it above 100px.

    https://wordpress.org/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this your theme, which adds some margins by CSS to the table head cells.
    To change this, please try this “Custom CSS”:

    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    	background-color: #C0C0C0;
    	text-align: center;
    	line-height: normal;
    	padding: 8px;
    }
    .tablepress thead th div {
    	margin: 0 !important;
    }
    .tablepress-id-1 {
    	width: auto;
    	margin: 0 auto 1em;
    }

    instead of what you have now.

    Regards,
    Tobias

    Thread Starter Jure_S

    (@jure_s)

    Great thank you!

    Another question, I wonder why at the top of the table appears light gray edge?
    I assume that the this is theme fault too?

    thank you very much

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that’s also coming from the theme and you can remove it with this “Custom CSS”:

    .tablepress thead th {
        border: none;
    }

    Regards,
    Tobias

    Thread Starter Jure_S

    (@jure_s)

    Hi,

    I have bigger problem with TablePress plugin and my theme.
    If I have plugin enabled my dropdown menu is not working correctly.

    And another problem is on pages that include tabs. If there is a table inside a tab I need to click on first tab to get content. If there is no table, tab gets open by it self.

    LINK

    BR Jure

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    this might be related to the use of colspan in the tables, while the DataTables library is also enabled. That’s unfortunately not compatible.
    So, please simply uncheck the “Use DataTables” checkbox on the “Edit” screens of the three tables on that page.

    Regards,
    Tobias

    Thread Starter Jure_S

    (@jure_s)

    Problem solved 😀

    thank u!

    BR
    Jure

    Plugin Author TobiasBg

    (@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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Header size too big’ is closed to new replies.