...

View Full Version : Vertical-align



kalloo
12-08-2005, 06:52 AM
Hi all,

is there any working alternate attribute for vertical-align. i have div tag of 50px height and inside it there is 1 word. i need to vertically align it in middle.

vertical-align:middle is not working.

thanks & regards,
Kalloo

_Aerospace_Eng_
12-08-2005, 07:02 AM
vertical-align only works on inline elements. A div is a block level element. Try using this instead.

line-height:50px;

kalloo
12-08-2005, 07:06 AM
Thanks, nice idea !



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum