Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #582920

    I would like to have different backgound colors for even and odd rows
    I don’t remember how to do , either when i use the standard editor, either when i use Avia
    Look at http://parolesetmusique-lyon.org/index.php/qui-sont-ils/
    Best regards
    Joseph

    #582955

    well try to do the following – and definitly play with background-color :lol:

    .main_color tr:nth-child(2n) {
        background: #e24020 !important;
    }
    
    .main_color tr:nth-child(2n+1) {
        background: #9c899c !important;
    }
    • This reply was modified 8 years, 9 months ago by Guenni007.
    #582996

    Hi!

    Please do let us know if that works out for you, or you do need more help for our side.


    @Guenni007
    once again, thanks a lot!

    Regards,
    Basilis

    #583475

    It works
    Howevef i thought there was another simpler solution with the possibility of changing the colors of one given table and not of all the tables
    Anyway, il will use this solution
    Thanks to you and gueni007
    Joseph

    #583486

    Hi!

    You can turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then give your table a custom class and then use the code as following

    .your-custom-class tr:nth-child(2n) {
        background: #e24020 !important;
    }
    
    .your-custom-class tr:nth-child(2n+1) {
        background: #9c899c !important;
    }

    Cheers!
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.