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.