Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
350 views
in Q2A Core by

In one of my plugins I have many TR rows below each other, easily you lose the overview.

I wanted to add some CSS to give each option a gray or white color by.

.qa-form-tall-table tr:nth-child(2n) { background:#EEE; }

Unfortunately, the TR lines are not "every second" but arbitrary depending on the options you add for each field.

I would really love to see: 1 OPTION == 1 TR line

Or each field surrounded with a DIV (if HTML compliant).

Thanks.

----

PS: I could at least give the input fields another color by inserting directly:

            $fields[] = array(
                'type' => 'static',
                'value' => '<style type="text/css">
                            .qa-form-tall-text { background:#EEF; }
                            </style>',
            );

 

Q2A version: 1.7.4

Please log in or register to answer this question.

...