• Resolved cvdw

    (@cvdw)


    Hi,

    Added this css to the plugin options but for some reason I can’t find it’s not working well for the tables Quiche and Tafelgarnituren.

    .tablepress .column-2 {
    padding: 8px 8px;
    }

    .tablepress .column-3 {
    padding: 8px 2px;
    }

    .tablepress .column-4 {
    padding: 8px 2px;
    }

    As far as I can see the Quiche and Tafelgarnituren tables are the same as the others but are not lining well. (à, € and price)

    Is there somewhere hidden code or something?

    Regards, Carel

    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 Carel,

    thanks for your question, and sorry for the trouble.

    This CSS actually has no influence on alignment at all. It only reduces the inner white space (padding) inside the cells. You are just lucky that the content of the other tables pushes these small cells to the right.

    My recommendation for the tables on this page would be this “Custom CSS”:

    .page-id-16 .tablepress .column-2,
    .page-id-16 .tablepress .column-3,
    .page-id-16 .tablepress .column-4 { 
        padding: 8px 2px;
        width: 16px;
    }
    

    We just set a small width to force the columns to have the same width. Note how I also used .page-id-16 to make this apply only to TablePress tables on this page of your site (with the internal WordPress page ID 16), but not to all other TablePress tables that you have on your site (or might have in the future).

    Regards,
    Tobias

    Thread Starter cvdw

    (@cvdw)

    Thanks, this worked very well for me! Keep doing the good work and enjoy your coffee 😉

    Plugin Author Tobias Bäthge

    (@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 3 replies - 1 through 3 (of 3 total)

The topic ‘Align / css columns’ is closed to new replies.