This is the code for my next/prev navigation found at http://ilikeyou.tk/763/ :
<div class="navigation">
<a href="<?echo $site;?><?echo$prevs['id']?>" class="prev" title="Previous Like"></a>
<? if($nexts['id'] == ''){ ?>
<? }else{ ?>
<a href="<?echo $site;?><?echo$nexts['id']?>" class="next" title="Next Like"></a>
<? } ?>
</div>
I would like to vertically center the buttons. I tried using vertical-align:middle;
which didn't work. I also tried top:50%;
but that didn't do the job either.
Here is my css:
.navigation {
position: relative;
float: left;
vertical-align : middle;
height: auto;
padding: 0;
margin: 0 -20px 0 -22px;
width: 636px;
z-index:1;
}
.navigation a.prev{
background: url('images/nav_left.png');
float: left;
width: 50px;
height: 50px;
margin-left:10px;
}
.navigation a.next {
background: url('images/nav_right.png');
float: right;
width: 50px;
height: 50px;
margin-right:10px;
}
Thanks!