Click to See Complete Forum and Search --> : css equivalent for valign="middle"


SBee
09-11-2006, 06:33 PM
HI-

I was wondering is there a css equivalent for aligning an object vertically. The same way you used to with this kind of table structure:

<table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align='center" valign="middle">

object

</td>
</tr>
</table>

<div align="center"> works but that is about it...

Thanks!

SBee

WebJoel
09-11-2006, 07:28 PM
http://www.jakpsatweb.cz/css/css-vertical-center-solution.html

Where: (above)

How: Attached screenshot of color-coded code, explaining 'hacks' that make it work in all browsers.

Rossario123
09-11-2006, 07:31 PM
div{margin:0 auto;}

Rossario123
09-11-2006, 07:33 PM
oops ignore my post i did not notice "verticaly"