CSS odd/even

Forum to discuss the new web client version of Servoy.

CSS odd/even

Postby marco.rossi » Fri Jul 13, 2018 10:26 am

Hi,
after crushing my head trying to make this css work:

Code: Select all
.svy-form .ui-grid-row:nth-child(odd) .ui-grid-cell {
   background-color: #ffffff;
}

.svy-form .ui-grid-row:nth-child(even) .ui-grid-cell {
   background-color: Silver;
}


I discovered that the only way to get it working is to use "labels" instead of "text_fields".

Is this the only way to work on the NGClient to get odd/even row color effect?
Have I to substitute all my text fields within the whole solution with labels?
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm

Re: CSS odd/even

Postby Joas » Thu Jul 19, 2018 5:23 pm

This also works for fields. Make sure they are set to transparent.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: CSS odd/even

Postby marco.rossi » Thu Aug 02, 2018 5:26 pm

Hi Joas,
thank you for your help, it works!

The problem was about the transparency..
Marco Rossi
Senior Analyst Developer
Freelance Consultant

IT Manager @Mantho
Webmaster @Sitoliquido
marco.rossi
 
Posts: 110
Joined: Sun Apr 12, 2015 9:33 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 5 guests

cron