CSS- Highlight a div when the id is linked to using an anchor?
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.