Search code examples
csscss-selectors

Middle Child Pseudo-Class


Is there a way to use CSS selectors to get the middle child in a list of elements?

I know that there is no literal :middle-child selector, but is there another way without resorting to Javascript?


Solution

  • Javascript is the only way to do this client side.