Hello, am trying to change the background of a listitem , in a css file if I put
li { background: #003a6a !important; }
li:nth-child(even) { background: #004278 !important; }
It is working fine but it is affecting all tables in other pages,I tried to use it for a specific listitem with the following code
[name=mobilelist_2].ui-listview .ui-li { background: #003a6a !important; }
[name=mobilelist_2].ui-listview .ui-li:nth-child(even) { background: #004278 !important; }
where the listitem name is mobilelist_2 , but it is not working.
Can you provide me with the right syntax to change the li css of a specific element.
Thanks in advance