CSS Basic: First of type and last of type

Select specific type of element of it parent

In the previous article, we already learnt how to the first-child and last-child to select the specific elements.

In this article, we are going to talk about in some situations, the first specific type of element is not the first child of its parent.

Source code:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store