I know this has been asked a thousand times but I find no simple solution there:
I do have that code a couple of times
<li>
<a href="#">
<img src="image_1.png">
<span>Name 1</span>
</a>
</li>
and I want to justify the span and the img-element vertically. Therefore I did
li span, li img{
display:block;
margin:auto 10px;
}
li img{
width:20%;
height:auto
}
but there is no effect at all. What do I do wrong there? What else could I do?