Wie kann ich ohne Tabellen in CSS in einem DIV Tag vertikal zentrieren.
vertical-align:middle; funktioniert leider nicht.
Danke für Hilfe.
vertical-align:middle; funktioniert leider nicht.
Danke für Hilfe.
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
<!--
#picBox {
float: left;
background-color: #f2f2f2;
border: 1px solid #e1e1e1;
vertical-align:middle;
text-align:center;
height: 142px;
width: 142px;
position: relative;
margin-right: 10px;
margin-bottom: 10px;
padding: 5px;
}
#thumb {
BORDER-RIGHT: #e1e1e1 1px solid;
BORDER-TOP: #e1e1e1 1px solid;
BORDER-LEFT: #e1e1e1 1px solid;
BORDER-BOTTOM: #e1e1e1 1px solid;
BORDER-COLLAPSE: collapse;
background-color: #f2f2f2;
}
-->
</style>
</head>
<body>
<table width="630" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="620">
<DIV id=picBox align="center"><img src="Download.jpg" width="130" height="80" id="thumb" /></DIV>
<DIV id=picBox align="center"><img src="Download.jpg" width="130" height="80" id="thumb" /></DIV>
<DIV id=picBox align="center"><img src="Download.jpg" width="130" height="80" id="thumb" /></DIV>
<DIV id=picBox align="center"><img src="Download.jpg" width="130" height="80" id="thumb" /></DIV>
<DIV id=picBox align="center"><img src="Download.jpg" width="130" height="80" id="thumb" /></DIV>
</td>
</tr>
</table>
</body>
</html>