Hi,
Can't figure out how to align text vertically in the middle in a link, example:
vertical-align positions the complete link box. The text appears at the top of the coloured background. How can I get the text in the middle of the background?
Thanks,
Can't figure out how to align text vertically in the middle in a link, example:
Code:
<style>
A.menu:link{background:#D5E3F2;width:145px;height:25px;vertical-align:middle}
A.menu:active{background:#D5E3F2;width:145px;height:25px;vertical-align:middle}
A.menu:visited{background:#D5E3F2;width:145px;height:25px;vertical-align:middle}
A.menu:hover{background:#FFFFFF;width:145px;height:25px;vertical-align:middle}
</style>
<a href="link.htm" class="menu"> test link</a>
vertical-align positions the complete link box. The text appears at the top of the coloured background. How can I get the text in the middle of the background?
Thanks,