The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS :first-child is not working for me… Re: :first-child is not working for me…


First item-page should be `.item-page`, but assuming that one was just a copy-paste typo. Well h1 is the first-child of item-page, rather than h2. If you’d want the h2 to get that style, maybe you would be looking for `:first-of-type` selector.