1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Can CSS alternate row background color work with SpeedScript?

Discussão em 'PSDN - Forum' iniciado por runningtom8@gmail.com, Fevereiro 16, 2015.

  1. How to solve an alternating rows background color for a dynamic table? using css?
    The case below only has one TR. Webspeed doesn't know what to do.

    Is there a solution for this?


    Here are the sample file that I am using to get alternate row background color to work with a dynamic data.


    ********* begin of sample.htm file ***************************

    {&OUT} "<table class=~"table2~">"
    "<tr>"
    "<td>" picked_by "</td>"
    "<td>" sort_by "</td>"
    "<td>" items-pick "</td>"
    "<td>" string(int(my-pick),"HH:MM:SS") "</td>"
    "</tr>"
    "</table>".
    end.
    *********** end of sample.htm file ********************


    ******************** begin of table.css file *******************
    .table2 tr:nth-child(odd){ background-color:#ee33ff; }
    .table2 tr:nth-child(even) { background-color:#ffffff; }

    ****************** end of table.css file ***********************



    Thank you.
    Tom

    Continue reading...

Compartilhe esta Página