I have an image element that I want to change on click.
This works:
#btnLeft:hover {
width:7
you can use :target
or to filter by class name, use .classname:target
or filter by id name using #idname:target
#id01:target {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.msg {
display:none;
}
.close {
color:white;
width: 2rem;
height: 2rem;
background-color: black;
text-align:center;
margin:20px;
}
Open