Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #488737

    Hi,

    have a look at that table in this event-post: https://quer-kraft.org/events/quer-kraft-jahrestagung-2015/

    Every second row is completely green formated. How can I changed the format in that way that is in every other line like it is in the first row?

    Thanks,
    Gee Are

    #488990

    Hey Gee Are!

    Add this to a codeblock element in that page.

    <style type = "text/css">
    tr, td { background: white !important; }
    </style>

    Cheers!
    Elliott

    #489428

    Hi Elliott,

    thanks, but how do I add that codeblock element in that page? Just copy & paste did not work.

    Cheers,
    Gee Are

    #489495

    or you can change the concerning rule:

    .main_color tr:nth-child(2n) {
        background-color: #fff !important;
    }

    if you only wants to change the table on that post you can give a class to that table or if it is the only table on that post:

    
    .postid-3964 .main_color tr:nth-child(2n) {
        background-color: #fff;
    }

    Edit: :lol – green seems to be your favorite color – even your avatar is a little bit “scottish”

    • This reply was modified 9 years, 4 months ago by Guenni007.
    #489870

    Hey @Gee Are Pabst,

    Just drag a Code Block element onto the page in question before the element you want to affect, then copy paste either of the code suggestions posted earlier into that block to see if that works. You can also use Quick CSS in the Theme options if you prefer that.

    Regards,
    Rikard

    #489899

    Hi Rikard,

    I took this code:

    <style type = “text/css”>
    tr, td { background: white !important; }
    </style>

    However, neither pasting it into the Quick CSS, nor pasting it in the post directly before the table worked.

    Any other iedeas? Did I make any Kind of mistake?

    Cheers,
    Gee Are

    #490224

    Hi!

    You would just drag the codeblock element to your page content and add that code inside. Send us a WordPress login and we’ll do the edit for you if your still having trouble.

    Cheers!
    Elliott

    #490620

    Hi Elliott,

    find attached my private message.

    Cheers,
    Gee Are

    #491264

    Hey,

    Could you create a new user in the WordPress backend please? I think it’s easier that way since I don’t want to use a personal email or Kriesi’s email for that. If you post details here in the Private Content section all moderators will have access to them and we will be able to help you out better.

    Regards,
    Rikard

    #491625

    Here we are!

    #492798

    Hi!

    we need admin access to be able to help you with that. However, try this code in Quick CSS field:

    em {
    color: #666666;
    }
    

    Best regards,
    Andy

    #493806

    Hi Andy,

    Quick CSS tip does not work.

    Now, you got admin access. Please, check it. Thanks!

    Cheers,
    Gee Are

    #494757

    Hey!

    your table seems fine to me now. Could you fix it?

    Cheers!
    Andy

    #495097

    Hi Andy,

    it wasn’t me. It was somebody of Kriesi. Yep, it is fixed on this post.

    However, here it isn’t: https://quer-kraft.org/veranstaltungen/

    How can I solved this table issue in general?

    Cheers,
    Gee Are

    #495263

    Hey!

    I checked the page and the background of the rows are white. Isn’t that what you wanted?

    Regards,
    Ismael

    #495438

    Hi Ismael,

    nope. Have a look in the private content. Every second second row is green in a table. I just want to have all second lines in the same color format…

    Cheers,
    Gee Are

    #496330

    Hi!

    Alright. Please add this in the Quick CSS field to adjust the font color of the alternate rows:

    .main_color table caption, .main_color tr:nth-child(even), .main_color .pricing-table>li:nth-child(even) {
        color: #666666;
    }

    Regards,
    Ismael

    #496407

    Hi Ismael,

    you’re the man! Problem solved! Ticket can be closed!

    cheers,
    Gee Are

    #496860

    Hey,

    Glad we could help :-)

    Cheers!
    Rikard

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘format in tables is different every second row’ is closed to new replies.