Redirect an image to link

429 views Asked by At

Good morning,

I would like to redirect when clicking on the image to a specific link. In the corresponding code:

<div class="u-gallery-inner u-gallery-inner-1">
        <div class="u-effect-fade u-gallery-item">
          <div class="u-back-slide u-back-slide-1">
    
            <img class="u-back-image u-expanded u-back-image-1" src="/images/Imagensn/images2.jpg"> 
    
          </div>
         
          <div class="u-over-slide u-shading u-over-slide-1">
            <h3 class="u-gallery-heading"></h3>
            <p>Em breve</p>
          </div>
        </div>

I appreciate help.

1

There are 1 answers

1
kevin_HWS On

you could simply revise the div tag into a. The only thing need to notice is that a tag is an inline element by default.

Code sample below.

https://jsfiddle.net/bzuvqnjm/