Forums

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…

#116175
TheDoc
Member

Because the `h2` is *not* the first child, the `h1` is the first child element of `.item-page`. You’re probably looking for `h2:first-of-type` but that is not supported by IE7 & IE8.