Bruno Fassino wrote: > On Fri, Feb 19, 2010 at 10:54 PM, Ingo Chao <[email protected]> wrote: >> >> 2010/1/3 Bruno Fassino <[email protected]> >>> FWIW, the IE8 vertical resize problem seems fixed by the presence of >>> some specific content inside the min-height container, for example a >>> display:table box, which can be empty and added with :after >>> http://brunildo.org/test/minheightIE8_2.html >>> >>> As you said, Opera can be fixed by the addition of some box, so >>> playing a bit more, the following seems to satisfy both Opera10 and >>> IE8, using :after for both (I needed to add a position:relative on >>> html for Opera) >>> http://brunildo.org/test/minheightIE8OP10.html >>> (Well, it's surely better to avoid these hacks altogether :-) and just >>> live with the resize problem...) >> >> Thanks so much, Bruno! >> I just tried your pseudo-element solution in Opera 10 for a >> footerStickAlt-related problem and it worked well. Don't understand why >> position:relative on html changed the game, though. > > > Well, I've no idea, what Opera is doing here is really strange. > Without that position:relative the fix doesn't work. It can also be > applied to body instead of html. > Also strange is that the added a.p. element must have a percentage > height, including 0%. > > Best regards, > Bruno >
I have suspicions that html is not the *initial containing block* or root container in Opera 10. This is since it uses a variant of the star html hack [1] that affect IE7-. Much like hasLayout in IE (or position relative bugs), such simple layout is only possible when something else has to be calculated. Consider this test. <http://css-class.com/test/css/box/min-height-resizing-opera-hack.htm> The solution was a min-height: 100% container with padding-top:1px and margin-top:-1px. I have no idea why 0% works in this case with generated content. For me it like feeding background-position: 0 0; to IE7- to kick in hover transitions. 1. <http://css-class.com/test/bugs/opera/opera-tilde-selector-bug.htm> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [[email protected]] 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/
