A properly marked up table with 1-row of 3-cells (in this case) is valid (and accessible) and is the only robust solution I know of for all browsers. The extremists will complain about table layout of course, but it's a case of being pragmatic in making the thing work - simply, and without any problems that I know of.
Bob ----- Original Message ----- From: "Ian Young" <i...@iyesolutions.co.uk> To: <css-d@lists.css-discuss.org> Sent: Monday, March 02, 2009 1:31 PM Subject: [css-d] vertical align div > > I have been playing around with vertically aligning my main portal. > > The code I have been using has two main problems. > > 1. It appears to need to be on the page to display the vertical > alignment > > 2. It loses its horizontal alignment. > > > > http://www.iyesolutions.co.uk/templates/portfolios/template3/vertical-align. > html > > > > The red background is just for testing. > > > > The vertical align code is on the page. > > > > There must be a more elegant method, surely. > > > > Best > > > > Ian Young > > Director > > IY e-Solutions > > > > > > > > ______________________________________________________________________ > css-discuss [cs...@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > > ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/