nth-child css question

Out of context: Reply #9

  • Started
  • Last post
  • 9 Responses
  • orrinward20

    If it's for a single use, I wouldn't use nth child. Give the h3 a specific ID or class.

    nth child is more for styling alternate lists and generated content.

    If there is a specific h3 element you want to affect, because of it's content or layout, you shouldn't be styling it in a way that would be affected by adding another element in the list.

    • this makes sense. thats how I do it. to be fair I have never used the above though. useful for lists.fadein11

View thread