I have a url where I used target, example: www.hello.com/#targeturl
I want to use that to hide an element, and also show a different element that's hidden. Is there a way to go about doing this?
The way I tried doing it was by using the below to show two "display: none" elements
<div id="targeturl" class="classy">
<div id="targeturl" class="classier">
and then used the CSS:
#targeturl.classy:target {
display: block!important;
}
#targeturl.classier:target {
display: block!important;
}
But of course this doesn't work, is there a way to make this happen?