Support » Plugin: TablePress - Tables in WordPress made easy » Sub headings in a table

  • Resolved Beno75

    (@beno75)


    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/

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

    (@tobiasbg)

    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

    Thread Starter Beno75

    (@beno75)

    Wow great feedback! Thanks Tobias.

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

    Ben.

    Plugin Author TobiasBg

    (@tobiasbg)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sub headings in a table’ is closed to new replies.