Forums

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

Home Forums CSS td:nth-of-type(2) vs td:first-child +td

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146501
    tomasz86
    Participant

    I’m wondering whether there’s any difference in speed between the two selectors. Which one is faster when it comes to pure performance?

    It’s important for me because this is applied to hundreds of elements and I’ve already experienced drastic decrease in speed by applying custom background through other CSS3 selectors like :before or :after.

    The :nth-of-type selector is also said to be slow but how does it perform compared to the other one?

    #146505
    Paulie_D
    Member

    It’s important for me because this is applied to hundreds of elements and I’ve already experienced drastic decrease in speed by applying custom background through other CSS3 selectors like :before or :after.

    Must be one heck of a complicated site.

    Is this a forum by any chance…in my experience those are the kind of sites that generate these terrible table structures?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.