Doing it with style
I get lots of emails asking how to vertically and horizontally align images within outer containers when the image size is unknown.
Well this is one answer that works in IE5.x, IE6, IE7, IE8, Firefox, Opera, Mozilla, Safari(PC) and Google Chrome, but does require two different styles, one for IE 5, 6 and 7 and the other for non-IE browsers and IE8.
IE 5, 6 and 7 uses inline-blocks and non-IE browsers use table-cell and vertical-align to emulate the table method.
Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.