Mar 18, 2018 · The subsequent sibling combinator and :first-of-class. The trick to using the combinator to emulate a :first-of-class psuedo class is to use a regular selector to style all the elements of the class with the style you want. Then use the combinator to turn it off for all but the first element. In our original example, the CSS now looks like this:. To show an element or text on hover, we can use the display property with CSS :hover pseudo-class. By default, we want the targeted element to remain hidden. This we can achieve by applying display: none; on it. Now, whenever, we hover over its adjacent, we want to display it. To do that we have to apply display: block; inside the :hover pseudo. all except first child in css. css target all except the first. apply css to other elements except first. apply to all child except first. remove all child except first jquery. css hide all child elements except first 3. css nth-child all except first. css all except the first class. non first child css.