You want vertical-align:middle; but, that generally only works in table cells. If you are using div elements, you can do something like so:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.menudiv {
width:10em;
height:2em;
padding-top:0.75em;
text-align:center;
border:1px solid black;
}
</style>
</head>
<body>
<div class="menudiv">Some Text</div>
</body>
</html>
Bookmarks