how to vertical center (or middle)

liunx

Guest
How can I get a vertical center of the scroller?

This is my code:

<div style="background-image: url('imgs/video.jpg'); width: 740px; height:228px;">
<p style="text-align: justify; direction: rtl; width: 720px; height: 180px; font-size: 12px; color: #ffffff; overflow: auto; padding: 8px; background: transparent none;">
Hello World
</p>
</div>


Thanks!You've lost me. Describe again what you want...The small code I showed before contain an image (DIV) and on the image there's some text with a scroller (P). I want the text and the scroller to positioning in the middle of the DIV and not at the top of it as it is right now.

Thanks!how about this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>
<body>
<div style="background: #b9e2ff; width: 740px; height:228px;">
<div style="padding-top: 25px;"><p style="text-align: justify; direction: rtl; width: 720px; height: 180px; font-size: 12px; color: #ffffff; overflow: auto; padding: 8px; background: transparent none;">hello</p></div>
</div>
</body>
</html>!
 
Back
Top