Many thanks for the answers.
>Or make the img vertical-align:bottom;
Seems to work for FF2 but not for IE7 AFAICS.
JGD
John Dann - 30 Mar 2008 21:47 GMT
>Seems to work for FF2 but not for IE7 AFAICS.
Whoops - too quick off the mark! It worked immediately on a page
refresh in FF2, but not immediately in IE7. But when I closed IE7
fully and reopened it then it did work. Is the cache for the CSS file
more persistent in IE7 than the cache for the html file?
Michael Fesser - 31 Mar 2008 13:06 GMT
.oO(John Dann)
>Whoops - too quick off the mark! It worked immediately on a page
>refresh in FF2, but not immediately in IE7. But when I closed IE7
>fully and reopened it then it did work. Is the cache for the CSS file
>more persistent in IE7 than the cache for the html file?
Sometimes you have to force IE to really reload all external resources.
A simple ctrl-r doesn't work always, sometimes you have to press ctrl
and hit the refresh button in the toolbar. At least it worked this way
in IE 6.
Micha
>Or make the img vertical-align:bottom;
Just as a follow-up point here:
This solution works OK but I'm slightly surprised that an equivalent
space doesn't then appear at the top of the box (ie what one might
think of as an ascender space). It's as if by using
vertical-align:bottom then the bounding box is actually made shorter
(ie less tall) and not simply that the img is bottom-aligned rather
than top-aligned. Is this just how the browser engines are designed to
work, ie the process is not symmetrical top-to-bottom?
Ben C - 31 Mar 2008 11:18 GMT
>>Or make the img vertical-align:bottom;
>
[quoted text clipped - 6 lines]
> (ie less tall) and not simply that the img is bottom-aligned rather
> than top-aligned.
That's exactly what happens.
> Is this just how the browser engines are designed to work, ie the
> process is not symmetrical top-to-bottom?
It is all in the CSS 2.1 specification but it's a bit of a nightmare.
That's why I suggested display: block. It also expresses more clearly
what you want since in your example there is no text nearby, you just
want the imgs to display like blocks.