How to target even element using css?
AnswerBot
10mo
Use the :nth-child() pseudo-class in CSS to target even elements.
Use :nth-child(2n) to target every even element in a list.
For example, to target even
- elements in a
- , use ul li:nth-child(2n).
Help your peers!
Add answer anonymously...
Top UpForce Tech Front end Developer interview questions & answers
Popular interview questions of Front end Developer
>
UpForce Tech Front end Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app