Support » Plugin: TablePress » Table width, left align, no border except top row

  • Resolved josie.byington@gmail.com

    (@josiebyingtongmailcom)


    Hello, I’m a new user of TablePress. My table is on this page:
    http://raincoastresearch.org/sandbox/wild-salmon-science/salmon-farms/what-went-wrong/
    The theme is called Advertica.

    In Plugin Options, I have these commands that are not carrying through. Do you have any suggestions, please? And for the borders, I would like a bottom border on row 1 only, but I don’t know how to code that. Thank you!

    .tablepress-id-2 .column-1 {
    width: 600px;
    }

    .tablepress-id-2 .row-1 .column-1 {
    background-color: #ffffff;
    }

    .tablepress-id-2 .row-2 .column-1 {
    background-color: #ffffff;
    }

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

    .tablepress-id-2 .column-1 {
    text-align: left;
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Please try this modified CSS:

    #content .tablepress-id-2 {
      width: 360px;
    }
    
    #content .tablepress-id-2 .row-1 .column-1 {
      background-color: #ffffff;
      border-bottom: 1px solid #000000;
    }
    
    #content .tablepress-id-2,
    #content .tablepress-id-2 tr,
    #content .tablepress-id-2 tbody td,
    #content .tablepress-id-2 thead th,
    #content .tablepress-id-2 tfoot th {
      border: none;
    }
    
    #content .tablepress-id-2 .column-1 {
      text-align: left;
    }

    We’ll basically have to be more specific in the CSS (by prepending that #content selector) due to the theme’s default CSS.

    Regards,
    Tobias

    Hi Tobias,
    Thank you for the code. I have done the update and it looks good, except for the background color.
    If you have any other ideas, I would be happy to hear them.
    http://raincoastresearch.org/sandbox/wild-salmon-science/salmon-farms/what-went-wrong/
    Thank you!
    Josie

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Josie,

    what background colors would you like for the two cells?

    Regards,
    Tobias

    Hi Tobias,
    I fixed it now.
    Thanks again!
    Josie

    Plugin Author TobiasBg

    (@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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table width, left align, no border except top row’ is closed to new replies.