html
<div class="navigation">
<a class="active" href="index.html">1</a>
<a href="index.html">2</a>
<a href="index.html">3</a>
<a href="index.html">4</a>
</div>
CSS
.navigation {
float: left;
height: 160px;
position: relative;
width: 24px;
}
.navigation a {
display: block;
}
Can anyone help me how to make <a> vertically center inside <div class="navigation">. Number of <a>s ranges so I can’t just do padding-top on <div class="navigation">.
Please help. Thanks.
In any case. If you wanted it
VERTICALLYandHORIZONTALLYaligned (in all browsers including IE6, maybe no IE5.5 MAC):See it in action.
HTML