Paolo Candelari wrote:
> But, generally isn't FF to show gap bottom images when document are 
> in stict mode? So Gunlaug (or George?) solution generraly is applied 
> in FF, not in IE, or I'm wrong?

I think you're right when it comes to default-styles, but that gap would
have been related to line-height set on a text-container. However, FF
(and other good browsers) respect height unconditionally on most
containers, thus are covering up and making it look alright in this case.

IE/win doesn't care about set height and will expand container if
content doesn't fit. Add in some constructed bugs in IE/win, and the
messy part starts:

- IE see whitespace/line break that isn't there - caused by the
line-break in the source-code (which it should ignore), so the gap appear.

These solutions are mentioned by others, and will all work but for
different reasons:

- Get rid of all whitespace and put everything in one line, and the gap
will disappear.
(My HTML Tidy does this automatically - even on downloaded pages, so
this is a bug I rarely see.)

- Set image to 'display: block' (since IE apply default 'display:
inline' regardless of doctype and mode) and the gap will also disappear.

- Set 'overflow: hidden' on container, and IE will "respect" height, and
the gap will disappear if height on container is set right.

- Define 'font-size: 1px; line-height: 0;' on container and the gap will
also disappear since there's no longer any line-height on that
"imaginary whitespace" that IE/win is bugged by.

> I have forgotten how works the so called "almost standard" mode in 
> IE?

Think I got it all covered above, but as mentioned: mode isn't all that
important here. IE6 is just as buggy and non-standard in both modes when
it comes to cases like this. That's why I rarely ever refer to 'standard
mode' in IE6...

regards
        Georg

ps: Georg is my name. Gunlaug is my wife's name and is fixed to my
chosen mail-address for public use.
-- 
http://www.gunlaug.no
______________________________________________________________________
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/

Reply via email to