Reputation: 370
I have a attribute It has width and my icon behind a attribute I want click in icon but icon and a the two was clicked
what I get:
<div class="mob-menu-logo-holder">
<a href="http://localhost/site1" class="headertext">
<img class="mob-standard-logo" src="http://localhost/site1/wp-content/uploads/2018/08/logo_by_me-1.png" alt=" Logo Header Menu">
<img class="icon_search" src="http://localhost/site1/wp-content/uploads/2018/08/icon_search.png">
</a>
</div>
Upvotes: 0
Views: 59
Reputation: 116
Please provide z-index for the image you want to click that will solve your problem
Upvotes: 1
Reputation: 629
Both are within the same <a> .. </a>
element. If you want to separate them use several of them separate:
<div class="mob-menu-logo-holder">
<a href="http://localhost/commentairecompose" class="headertext">
<img class="mob-standard-logo" src="http://localhost/site1/wp-content/uploads/2018/08/logo_by_me-1.png" alt=" Logo Header Menu">
</a>
<a href="http://localhost/perhapsdifferentURI" class="headertext">
<img class="icon_search" src="http://localhost/commentairecompose/wp-content/uploads/2018/08/icon_search.png">
</a>
</div>
Upvotes: 0