Forum Moderators: not2easy

Message Too Old, No Replies

Centering two divs in table cell

         

simpler

12:13 am on Mar 28, 2006 (gmt 0)



I have a table cell within which I am trying to center two 'div's vertically on top of each other, relative to the table cell.

Every attempt I have made so far fails. I either get extended table cells, or consecutive arrangement of the elements.

Does anyone have any ideas?

getxb

7:25 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Try <div align="center"> It might work.

regards,
getxb

evo81

7:55 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Try giving the div' auto margins and remember to set the width. {margin: 0 auto;}