Can someone explain how I vertically align the text in <a>
elements - so both text appears in the middle of the red box?
Here's my HTML:
<ul>
<li><a href="#">this is a link</a></li>
<li><a href="#">this is an even longer link</a></li>
</ul>
and my CSS:
li {list-style-type:none;margin:0;padding:0}
li a {width:100px;float:left;background:red;margin-right:20px;height:40px}
Many thanks for any pointers