Told you it was worth discussing! :-)
Bob
www.gwelanmor-internet.co.uk
Ingo Chao wrote:
Rimantas Liubertas wrote:
2005/9/8, Ingo Chao:
<...>
For your specific dead center question, were the pure CSS path shows a
very known CSS weakness in vertically centering content:
<...>
A very known Internet Explorer weakness, I would say.
Thanks. You are right. It's not CSS. Sorry.
The current CSS implementation by most browsers does not play well
regarding vertical centering. As of CSS2.1, we should be able to solve
such problems via inline-block boxes, but
* Moz: -moz-what?
* Opera: display: inline-block and vertical-align: middle broken
http://www.satzansatz.de/cssd/tmp/inlineblock.html
* IE/Win: display: inline-block broken, no display: table
http://www.brunildo.org/test/InlineBlockLayout.html
So, as shown in the vertical centering demo I linked to [1],
+ display: table/table-cell (Saf, Op, FX)
+ display: inline-block (MacIE)
+ display: inline/layout (IE/Win)
is used to center a shrink-wrapped box cross-browser.
Regards, Ingo
[1] http://www.brunildo.org/test/shrink_center_5.html
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************