kippie
Technical User
- Nov 8, 2001
- 158
In the HTML below I want to align the text vertically. But I don't know how to do it. I know it can be done by putting a table cell in the div but I would like to know if it's possible without table commands? Can anyone help?
<html>
<head>
<style type="text/css"><!--
#layer { position: absolute; top: 16px; left: 16px; width: 200px; height: 200px; border-style: dashed; border-color: red; visibility: visible }-->
</style>
</head>
<body>
<div id="layer">this text should be vertically aligned in this layer. But I don't how how to do it. </div>
</body>
</html>
Kippie
<html>
<head>
<style type="text/css"><!--
#layer { position: absolute; top: 16px; left: 16px; width: 200px; height: 200px; border-style: dashed; border-color: red; visibility: visible }-->
</style>
</head>
<body>
<div id="layer">this text should be vertically aligned in this layer. But I don't how how to do it. </div>
</body>
</html>
Kippie