Forums

WP-Table Reloaded
[resolved] Only borders on top/bottom of rows (6 posts)

  1. chakadog
    Member
    Posted 1 year ago #

    Hi Tobias - love your plugin and great job!

    I've been working with my css after reading the FAQ, and global control of table borders works great.

    How does one create a table style that only draws horizontal borders between rows, and on the top and bottom of the table itself?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    that actually depends on the actual table (and its styling), because the theme can sometimes influence this.

    Usually, something like

    .wp-table-reloaded-id-123,
    .wp-table-reloaded-id-123 tr {
      border-top: 1px solid #000 !important;
      border-bottom: 1px solid #000 !important;
    }

    works.

    Best wishes,
    Tobias

  3. chakadog
    Member
    Posted 1 year ago #

    Tobias,

    Thank you so much for your quick reply.

    I forgot to call the border style so it didn't appear. Thanks for pointing out how brain-dead I can be sometimes!

    Here's a follow-up question:

    I'm also trying to style for printed output and regardless of what I add to my print-css stylesheet the tables won't respond in a predictable fashion. Is there an easy way to style printed output? Sometimes I call a table directly and can get borders to show up, other times not, background colors, never. Interestingly enough, invoking print media css using the Firefox Web Developer tool does indeed show the styling. An actual print preview does not. I realize this question may be beyond the scope of your plug-in, however, if you have any quick tips I'd appreciate it.

    As a test I copied the entire custom css you provided at the end of my print stylesheet... still nothing.

    Thanks Tobias for any help you can provide!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    no problem! :-)

    About that print CSS: Unfortunately, I'm unable to help with that :-( I have never really worked with CSS that is directly related to printing. From what I know, there's a "media" target print, which can be used to load another CSS file. I don't know why sometimes the code works and sometimes it doesn't. This should however be a "plain" CSS issue, and nothing directly related to WP-Table Reloaded.

    Best wishes,
    Tobias

  5. chakadog
    Member
    Posted 1 year ago #

    OK Tobias - fair enough.

    Once again thanks for your work on WP Table-Reloaded. Much appreciated.

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    sure, you are very welcome!

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic