replace :nth-child with :first-child + ... + ...; also set height:auto to make room for long selectors