Use the  instead of nth-child.