• Resolved jamesgrayston

    (@jamesgrayston)


    I am struggling to make my table columns match the width of a different table above it.

    The table I am struggling with is the one that contains a row of red “price” buttons.

    The table stretches the entire width of the page and I don’t want it to.

    I have tried to define the column widths, using code from your documentation, but it is having no effect.

    Any help will be much appreciated.

    Thanks,

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The problem here is that the inserted images get an extra margin on the right, from the CSS in your theme. To remove that, and have the images fit better, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress td a img {
    	margin: 0;
    }

    You shouldn’t even need CSS to set column widths then.

    Regards,
    Tobias

    Thread Starter jamesgrayston

    (@jamesgrayston)

    Tobias:

    Thanks. I love your plugin by the way.

    Now my tablepress “price” table finishes at the same position on the right as the table above it, which is great.

    Is there anyway that I can offset my tablepress table so that it starts by column two of the table above it?

    Thanks,

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    your best chance for that probably is to just add an empty first column.

    Regards,
    Tobias

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

The topic ‘Column Width’ is closed to new replies.