WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Width of columns (2 posts)

  1. mako2
    Member
    Posted 1 year ago #

    First of all: I love this plugin!

    How do I make my columns all the same width?

    My page = http://bit.ly/YOh4IW

    Thanks!

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    The details for this are explained in the TablePress FAQ at http://tablepress.org/faq/ where you can find a special question for this.

    In your case, the quickest and shortest way would be to use this "Custom CSS":

    .tablepress td {
      width:20%;
    }

    However, I really only recommend this code, if ALL of your TablePress tables ever will have exactly 5 columns and you want those to be equal.
    Otherwise, you should extend the code to use the table ID depending selectors, i.e.

    .tablepress-id-2 td,
    .tablepress-id-4 td,
    .tablepress-id-5 td,
    .tablepress-id-6 td,
    .tablepress-id-7 td,
    .tablepress-id-8 td {
      width: 20%;
    }

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags