HTML Code
<div class="app-header-logo">
<a href="/home"><img ng-src="img/..."/></a>
</div>
CSS Styles
.app-header-logo {
width: 48px;
height: 64px;
padding: 8px 0px 8px 0px;
margin: 0px 16px 0px 0px;
vertical-align: middle;
text-align: center;
background-color: #009530;
display: inline-block;
}
.app-header-logo > img {
height: 32px;
margin: 8px 0px 8px 0px;
}
I've written some code above. I want a user to be redirected when they click on an image, but when I inspect the element, I notice that the anchor tag is there but I can't click on it. I don't know much about CSS, but I suspect this is a CSS issue.
When I remove the class "app-header-logo", I can click on the image and the cursor changes to a pointer.
I would appreciate any help!
Thank you!