DEV Community

[Comment from a deleted post]
Collapse
 
jonaslinn profile image
Jonas Linn • Edited

q1: I think the pseudo class button:disabled would be better.

q7: Without seeing the design I would say that the first solution with the nth-child might be wrong. edit: My bad, (n+2) works like it should, skips first element.
I would propose: .list__item + .list__item { margin-left: 10px; } As long as there is another item, add margin to it.

Collapse
 
melnik909 profile image
Stas Melnikov

Thank you for your tips. I forgot about the :disabled. Also can you tell why you said "Without seeing the design I would say that the first solution with the nth-child might be wrong."? When is the first solution wrong?

Collapse
 
jonaslinn profile image
Jonas Linn

Sorry my bad, got confused with (2n). (n+2) is all good.