...is there not a way in CSS to make a range say #expand[1-10]?
Well, what I do is code this snippet...
#expand1:checked ~ table tbody tr:nth-of-type(2) ul,
...using my digits and the keyboard, and C&P it.
I then increase the value of
#expand by 1 and
change the value of
type() to suit.
I repeat this process until I have the desired
number of items. Finally I remove trailing
comma of this last item.
In the HTML I numbered all the
tr elements to
help with the
type() value changing.
That's about as dynamic as get.

Of course, you must bear in mind that, unlike
many others, I have nothing better to do.
coothead