• Resolved BrownEyesTFC

    (@browneyestfc)


    So what’s the trick for aligning tables? I’ve been through all the TablePress documentation (couldn’t find anything) and tried a lot of different code. All I want to do is make a table left-aligned on a page.

    Following is the code I currently have:

    .tablepress-id-5 tbody td {
      border: none;
      padding: 0!important;
      margin-bottom: 0;
      float: left !important;
    }

    https://www.ads-software.com/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble. I’m not really sure what you mean with “left-aligned”, as I can not see how the table looks like right now.
    Can you please provide a link? I’ll then gladly try to find the necessary code.

    Your current code will only apply to the individual cells, so that’s not going to help.

    Regards,
    Tobias

    Thread Starter BrownEyesTFC

    (@browneyestfc)

    I want the table at the top of this page (with the two books) to be aligned to the left, not centered. https://www.thefoodcop.com/book/

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the link! This makes things much easier.

    The table is centered, because your theme also contains CSS code that affects tables (and centeres all tables in their container).
    To change for this table, please add this “Custom CSS” (and remove your tries from above):

    #content .tablepress-id-5 {
        margin: 0;
    }

    Regards,
    Tobias

    Thread Starter BrownEyesTFC

    (@browneyestfc)

    That worked great – thanks!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    very cool! Thanks for the confirmation!

    Best wishes,
    Tobias

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table alignment’ is closed to new replies.