|
Posted by John Hosking on 05/16/07 15:17
Ciaran wrote:
> Can someone please give me a hand vertical centering this bit of text
> in a div without extra markup?
>
> <div style="border-top: solid 1px #999999;text-align:center; font-size:
> 7pt; height:3%;>bit of text</div>
>
> I've tried, vertical align, line height, various display rules,
> padding values and position:relative.
Does this help you?
http://www.student.oulu.fi/~laurirai/www/css/middle/
--
John
Navigation:
[Reply to this message]
|