html - Making an image inside a figure a link - image size changes -


hi when wrap image anchor image becomes small. have image inside of figure , using flex-box, not sure how keep image size changing.

.foo{  display:flex;  flex-direction:row;  justify-content:space-around;  }
<figure class="foo">  <a href="#"><img src="#"></a>  <a href="#"><img src="#"></a>  <a href="#"><img src="#"></a>  </figure>

you can add css img tags inside foo class. gave 100px height , width each img.

.foo{  display:flex;  flex-direction:row;  justify-content:space-around;  }    .foo img{  height:100px;  width:100px;  }
<figure class="foo">  <a href="#"><img src="https://i.stack.imgur.com/ce5lz.png"></a>  <a href="#"><img src="https://i.stack.imgur.com/ce5lz.png"></a>  <a href="#"><img src="https://i.stack.imgur.com/ce5lz.png"></a>  </figure>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -