Frontend Web Development
JustBrian7872
•
1y ago
•
100%
TIL you can do #myId#myId#myId span { ... } and it makes a difference over #myId span { ... }
developer.mozilla.orgAdding 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; }
Comments 0