on ‎2022 Jan 03 5:47 AM
Hi All,
1. How can we write 'Not equal to' in CSS? I want to put a condition where:-
if 'User Status' is NOT EQUAL TO ( ASIG or USAB ) ? I have tried this, but it gives an error.
tr[data-mydata != "ASIG"]{ background: #ff3333!important }
Regards
Meenakshi
Request clarification before answering.
Use the :not selector.
tr:not(tr[data-mydata="ASIG"]) {
background: #ff3333 !important;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.