You can use margin-top: 5px; or padding-top:5px; (depending on how your div is setup) in the div where you have your text to push it down.
Cheers
Frederico
2009-06-18 19:21:07
You can use margin-top: 5px; or padding-top:5px; (depending on how your div is setup) in the div where you have your text to push it down.
Cheers
If it is a single line of text, you can set line-height.
<div style="height:50px;background-color:#ccc;">
<p style="line-height:50px;">test</p>
</div>
It is much more difficult to vertically center multiple lines of text.