Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #385036

    Dear Kriesi
    Thank you for wonderful support. I am always happy with your help and I hope you can help me with styling my tables this time. I am copying tables from Excell and not using the Avada table builder.

    1 . I would like the background color to be white, now every second row is gray.
    2. I would like the text to align vertically to the top top inn all tables/cells. I can do this in the HTML <TR VALIGN=TOP> but it is a lot of work because i will need to do it in a lot of different tables. You can see what I mean in the link below.

    I hope there is a way to include a custom CSS to fix this.

    Thanks again.

    Best Regards
    Urban

    #385698

    Hey _urban_!

    Try adding this to your custom CSS.

    td, tr {
      background: none repeat scroll 0 0 transparent !important;
      vertical-align: top;
    }

    Cheers!
    Elliott

    #385969

    Dear Elliott
    Thank you so much for your quick response!

    Align top worked! Great.
    But I had to use this code to make the background white. I really don’t know why, I just found it and tried various versions until I found something that worked.

    /* Table align top */
    td, tr {
    vertical-align: top;
    }
    
    /*Table all white background */
    .main_color tr:nth-child(2n+1) {
        background: none repeat scroll 0 0 #ffffff;  
    }

    Thanks again!

    _urban_

    • This reply was modified 9 years, 9 months ago by _urban_.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Tables: background color and vertical text align’ is closed to new replies.