• Resolved banddesign

    (@banddesign)


    Hi, first off thank you for this amazing plugin!

    Just wondering if there is a way to remove the border-top for only the top row of the table? I’ve tried through css, but have had no luck.

    Any help would greatly be appreciated!

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MyThirdEye

    (@mythirdeye)

    Hello!

    Thank you for using my plugin 🙂

    So do you want to remove the top border of the first row element in the body? As in, the border below the headers? Or are you talking about the top border for the headers?

    This is how you would remove the top border of the first row element

    <style>
    table.jtrt_table_creator tbody tr:first-child td{border-top:none;}
    </style>

    If you want to remove the top border on the headers:

    <style>
    table.jtrt_table_creator thead tr.sorted_head td{border-top:none;}
    </style>

    Let me know if you have any more questions or issues and thanks again for using my plugin!

    John

    P.S. You don’t need to include the <style> tags if you want to put the code in a css file / custom CSS box in your theme or something. Just the css code ie table.jtrt_table_creator thead tr.sorted_head td{border-top:none;} should work.

    P.S.S. This code will effect all your jtrt tables on your website. If you want to target a specific table just change the css code to look like this

    table.jtrt_table_188 tbody tr:first-child td{border-top:none;}
    table.jtrt_table_188 thead tr.sorted_head td{border-top:none;}

    where .jtrt_table_188 <- replace 188 with your table ID.

    • This reply was modified 9 years, 8 months ago by MyThirdEye.
    • This reply was modified 9 years, 8 months ago by MyThirdEye.
    • This reply was modified 9 years, 8 months ago by MyThirdEye.
    Thread Starter banddesign

    (@banddesign)

    Hi John,

    Perfect!! Thanks for your help and again for the great plugin 🙂

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

The topic ‘How to remove top cell border only?’ is closed to new replies.