WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Sub headings in a table (4 posts)

  1. Beno75
    Member
    Posted 1 year ago #

    Hi,

    Great plugin thanks for your hard work!

    In my table I have a couple of sub headings.

    I have a row with 10am and another with 6pm. Is there a way to have these as sub headings with a slightly different style within the one table?

    If not what would you suggest I do to work around it?

    Thanks,
    Ben.

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ben,

    thanks for your question. From what I can see, you already seem to have found the recommended way for doing this in the TablePress FAQ. Very nice!

    So, all that remains for me is to make suggestions about how to shorten and optimize your code. Instead of what you have now for table 1, you can use the much shorter

    .tablepress-id-1 tbody td {
    	padding: 6px;
    }
    
    .tablepress-id-1 .row-2 td,
    .tablepress-id-1 .row-9 td {
    	background-color: #ffffff;
    	color: #000;
    	font-weight: bold;
    }

    Regards,
    Tobias

  3. Beno75
    Member
    Posted 1 year ago #

    Wow great feedback! Thanks Tobias.

    I have another question but I'll start another topic.

    Ben.

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ben,

    no problem, you are very welcome! :-)

    Best wishes,
    Tobias

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic