CSS- Highlight a div when the id is linked to using an anchor?
Solution 1:
You need to use the :target
pseudo-class:
:target {
background-color: #ffa;
}
JS Fiddle demo.
You need to use the :target
pseudo-class:
:target {
background-color: #ffa;
}
JS Fiddle demo.