html - How can I vertically center side-by-side anchor and anchor-image tags? -
i having trouble centering these 2 elements. i'm not sure problem is. can me out. first here screenshot of going on:

so how these elements vertically centered?
here html , css:
<div class="vcenter"> <p> <a href="http://www.google.com">jimdaniel</a> <a href="http://www.cnn.com"><img src="icon.png"/></a> </p> </div> .vcenter { padding:10px; background-color:darkblue; min-height: 25px; display: table-cell; vertical-align: middle; } thanks help!
Comments
Post a Comment