Support » Plugin: WP-Table Reloaded » [Plugin: WP-Table-Reloaded] Trying to center column 2 of rows 3-5

  • Resolved ronblaisdell

    (@ronblaisdell)


    Here is my sample page:
    http://www.advancedsolarphotonics.com/table-testing/

    Trying to center the contents of column 2 on rows 3-5.

    Custom CSS is:

    .wp-table-reloaded-id-1 .row-3 .column-2 td,
    .wp-table-reloaded-id-1 .row-4 .column-2 td,
    .wp-table-reloaded-id-1 .row-5 .column-2 td{
    text-align:center!important;
    }
    
    .wp-table-reloaded-id-1 .row-2 td{
    text-align:center!important;
    font-weight:bold!important;
    }

    Any ideas?

    Thanks,
    Ron Blaisdell

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

    (@tobiasbg)

    Hi Ron,

    please try this:

    .wp-table-reloaded-id-1 .row-3 .column-2,
    .wp-table-reloaded-id-1 .row-4 .column-2,
    .wp-table-reloaded-id-1 .row-5 .column-2 {
      text-align:center!important;
    }
    
    .wp-table-reloaded-id-1 .row-2 td{
      text-align:center!important;
      font-weight:bold!important;
    }

    The td after the column selector is too much. The column part itself is a class of the tds already, so you don’t need it again. Only if there is no column selector in the CSS (like in the second part of your code), it is necessary.

    Best wishes,
    Tobias

    Thanks — worked like a dream.

    I had a feeling it was something “simple”!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Table-Reloaded] Trying to center column 2 of rows 3-5’ is closed to new replies.