CSS Order Dependent Selectors

These are special selector rules that can be used to select an element before or after the targeted element.

/* Select a child afterwards */ .MAINpanel:after { /* some styling */ } /* Before */ .MAINpanel:before { } /* Nth child */ .LOGpanel:nth-child(2) { background: red; }

Â