On Wed, 22 Nov 2006 13:42:24 -0500, Marty Martin wrote:
> I am trying to vertically align a div within a div but am having
> problems. Here's what I have code wise--
>
[code snipped]
>
> What do I need to do to get it to align in the middle within it's
> container div?  YOu can see it here--  
> http://www.urologicsurgeryonline.com/
>
Hi Marty,

While it's fairly easy to get a block to center vertically in most browsers 
by using a display: table; or display: table-cell; declaration for the 
container element, together with the vertical-align property, the world's 
favorite browser does not recognize any of the table display properties. I 
usually wind up with a one-cell table if I _really_ need that. For the 
purist, one could inject the table, tr, and td elements using JScript for 
IE, and CSS for the rest, I suppose.

Looking at your page, though, it looks fine without this enhancement. 
Personally, I wouldn't bother and go with what you already have.

Cordially,
David
--
www.hucklesby.com



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to