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
Post a Comment