Joshua L Joshua L - 1 year ago 128
HTML Question

Vertical-align is not working in safari and chrome

<div class="commentator grid_3">
<img src="" alt="commentator">
<span class="commentator-name"><a href="#">Joshua</a></span>

So I set commentator-name vertical-align to Top.It works in firefox but not in chrome and safari.
Can someone help me out??I dont want to use position absolute when I have a perfect choice...

Answer Source

please add the display:inline-block to span tag.lik this:

  vertical-align: top;

please view the demo.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download