• Resolved djkoenig

    (@djkoenig)


    I have tables where I would like to do alternate row background colors. My problem #1 is when I use “The background colors of consecutive rows shall alternate.” it works properly for rows that do not have the rowspan tag in a column. If it does, then every other row is highlighted within original row. See Members – K – MICHIGAN MOPAR MUSCLE CAR CLUB, INC.

    #2, if can get this to work, I want to set the background color to a lighter shade of the header row. I did try in Plugin Options to add this for that specific table, but not working.

    .tablepress-id-188 .odd td {
    background-color: #d66802;
    }

    .tablepress-id-188 .even td {
    background-color: #ffffff;
    }

    Regards Donna

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    #1: From what I can see, this looks as expected, with the merged cells. Can you maybe explain what you would like to have shown differently?

    #2: Just as you are setting in the CSS, the alternating row colors are a shade of orange and white for me. Are you seeing something else?

    Regards,
    Tobias

    Thread Starter djkoenig

    (@djkoenig)

    Tobias,

    I would like to use color code #d66802 for the even rows,

    I would want the rows to shade every other Member Name. Keeping all the Cars, Info & Pictures to be shaded to;

    ex:

    Name 1 Car 1 Info picture

    Car 2 Info picture

    Name 2 Car 3 Info picture

    Name 3 Car 4 Info picture

    Name 4 Car 5 Info picture

    Name 1 and its data would be white background

    Name 2 and Car 2 Info and Picture along with Car 3 Info and picture would be shaded.

    Name 3 Ca 4r info and picture white background

    Namr 4 car 5 and info would be shaded.

    See https://michiganmoparmuscle.com/members-k/ for example.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, I see what you mean! Then, you’d have to use a slightly different approach and change the colors for each row separately, via https://tablepress.org/faq/change-background-color-of-a-row/, and repeat that for each row and the desired color.

    Regards,
    Tobias

    Thread Starter djkoenig

    (@djkoenig)

    Thank you Tobias.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

The topic ‘Tablepress, alternate row background using rowspan’ is closed to new replies.