Sorry for me newbie question, but I'm a rooky in web-dev.
I have a code which allows me to place a hooverable elements on my website. Problem is that I want to transfer it now to clickable element - best is right click.
I tried to do it with :active option in css but it didn't work.
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
Is there a simple way to achieve that in pure css?
javascriptand you want a pure css solution?