On Thu, Feb 28, 2008 at 3:35 AM, Russell Robinson wrote:
>
>  I have a problem that affects IE6 and IE7 (I haven't tested IE5.5).
>
>  I've created a test case:
>         http://www.tectite.com/tests/iewidthtest.htm
>
>  Firefox and Konqueror (FWIW) work exactly as intended.
>
>  The aim is to get an image bounded by a "frame" (not browser frame) that also
>  includes some caption text.
>
>  IE expands the frame's div so that the border is the entire width of the
>  content instead of fitting it nicely around the image.
>
>  I guess this is a shrink-to-fit problem.

To get the shrink-to-fit effect you are using
  div.pic .frame { display: table; }
but IE doesn't support this. There are ways to get that effect in IE,
for example giving hasLayout _and_ display:inline to that div. Feeding
sometime like
div.pic .frame { zoom: 1; display:inline; }
to IE only, should work.
I've some notes about shrink-to-fit problems in IE linked at the end
of this page [1]

Best regards,
Bruno

[1] http://brunildo.org/test/shrink_center_3.html

-- 
Bruno Fassino http://www.brunildo.org/test
______________________________________________________________________
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/

Reply via email to