Apply a style to child elements that is not the first child

CSS

To apply a style to every child element that is not the first child :

.parent > *:not(:first-child) {
    ...
}

We can write it in a more shortcut way

.parent > * + * {
    ...
}

Back to Top

I am actually playing with NextJS, some contents are not available yet ! See the v1