L
L
Levkas2019-03-14 14:18:50
css
Levkas, 2019-03-14 14:18:50

How to style the last element in the DOM in css3?

<div class="el"></div>
<div class="el"></div>

There are two elements, how do I apply the :last-child pseudo-class to the 'el' class and style the second element?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-03-14
@Levkas

This?
https://codepen.io/anon/pen/OqQbLL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question