frontend

TIL you can do #myId#myId#myId span { ... } and it makes a difference over #myId span { ... }

developer.mozilla.org

Adding the same id multiple times increases the specificity of a selector and thus overrides other selectors.

e.g.

#myId span {color: red; }
#myId#myId#myId span { color: blue; }

Codepen

2
0
Comments 0