WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] borders won't go away & alignment problem (6 posts)

  1. Fame Webdesign
    Member
    Posted 1 year ago #

    Hello,

    Please check http://www.bakkertjebol.nl/wp/openingstijden/

    I would like te remove the borders and added this to CSS rules:

    .tablepress-id-1,
    .tablepress-id-1 tr,
    .tablepress-id-1 tbody td,
    .tablepress-id-1 thead th,
    .tablepress-id-1 tfoot th {
    border: none;
    }

    But the borders are still there. What am I doing wrong?

    Second question: I would like to align the table on the left instead of centered as it is now. How can I do this?

    Thanks for your help!

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble!

    The reason for this is that your theme also contains CSS code that adds borders to tables. To remove everything, we'll just need to be more strict in the CSS code. Please try again with

    #content .tablepress-id-1,
    #content .tablepress-id-1 tr,
    #content .tablepress-id-1 tbody td,
    #content .tablepress-id-1 thead th,
    #content .tablepress-id-1 tfoot th {
      border: none;
    }

    To align the table to the left, please add this:

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

    Regards,
    Tobias

  3. Fame Webdesign
    Member
    Posted 1 year ago #

    Thanks a lot Tobias! It all works!

    Finally a plugin for tabels that works nice! Thanks!

    Please check http://www.bakkertjebol.nl/wp/openingstijden/

    Is it possible to align the table text to the start of the sentence "De openingstijden van ...."?

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    great to hear that this worked and that you like the plugin! :-)

    Yes, aligning that text is no problem. Please add this "Custom CSS" to achieve that:

    #content .tablepress-id-1 .column-1 {
        padding-left: 0;
    }

    Additionally, I recommend that you uncheck the "Row Highlighting" and "Alternating row colors" checkboxes on the "Edit" screen of the table.

    Regards,
    Tobias

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

  5. Fame Webdesign
    Member
    Posted 1 year ago #

    Worked again!

    Great!

    I'm going to rate now!

    Thanks!

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    very nice! Thanks for the confirmation!

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic