a {
display: block;
padding: 0 10px;
/* background: rgba(0,0,0,0.5); */
height: 100%;
border-left: 1px solid rgba(0,0,0,0.1);
text-decoration: none;
color: white;
background-color:rgba(0,0,0,0.5);
height:100px;
}
img {
max-height: 72px;
max-width: 598;
margin: 0;
padding: 0;
vertical-align: middle;
width: 40px;
height: 40px;
border-radius: 50%;
}
.img_frame {
display: inline-block;
vertical-align: middle;
height: 100%;
background-color: black;
}
<a href="">
<span class="img_frame"></span>
<img class="size-40X40 img-round" src="https://yt3.ggpht.com/-zvxnrUIYjg8/AAAAAAAAAAI/AAAAAAAAAAA/vnVVaPAvxOE/s900-c-k-no-mo-rj-c0xffffff/photo.jpg">
</a>
If I am removing span
tag, image is not coming to center, and if I replace span with any other tag like p
tag, then also same problem...
Please explain about these properties... Thanks in advance