On 5/13/05, Ingo Chao <[EMAIL PROTECTED]> wrote: > Justin Patrin schrieb: > ... > > The Holly Hack probably does work, but I > > stumbled across this page: > > http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp > > which says that the zoom property also gives a box layout. So I tried > > zoom: 100% in my div and lo and behold, it works. > > Yes, but zoom is proprietary to MS and will not validate (I use zoom:1 > for debugging). > The problem with this MSDN page is that it don't explain what "layout" /is/ > > The mechanism of the Holly Hack is the same as zoom:1; but validates: > > /* hide from IEMac \*/ > * hmtl .hack {height:1%;} > /* end hide */ > > The intention of the Holly Bergevin's hack was not to add a height > of 1%, but to add a dimension to the element, as any dimensioned element > gains the "layout"-quality. >
Good point. Does that work in FireFox, Opera, and Safari as well? I honestly don't care too much about validation as the rest of the page is very much not XHtml. Just this part that I'm rewriting. As long as the zoom property works to fix the problem and doesn't screw up the other browsers I'm fine. And about the above hack....if that only shows up for IE then you could still use zoom. Hmmm, well I suppose not. If the compliant browsers still read the CSS (and it looks like they do) then it still wouldn't validate.... Hmmm, oh well. Either way, we have a workaround. :-) -- Justin Patrin ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
