[Silva-general] Images in Tables / IE problem?

kit BLAKE kitblake at gmail.com
Fri Mar 10 19:07:52 CET 2006


2006/3/10, Bas Leeflang <b.r.leeflang at chem.uu.nl>:
> Dear generals,
>
> An issue that has been bugging me for some time is the fact that I
> cannot see images that are included in my Silva sites within an table
> cell. That is, the issue only occurs when one tries to view the page
> with Internet Explorer.
>
> Is this a known and reproducible problem to you? Off course when you
> have a working solution at hand, I am keen to implement it here.
>
> I have zoomed in to the problem. This is a snippet of the Silva produced
> code:
> ...
> <td class="align-left">
>  <a href="" target="_self"><img src="address_files/went.jpeg" title=""
> class="" height="" width=""></a>
> </td>
> ...
>
> I have copied the Silva page to a local file and did some tests. It
> turned out that IE probably interprets the empty strings for the height
> and width as '0'. When I remove the it altogether it works perfectly.
>
> ...
> <td class="align-left">
>  <a href="" target="_self"><img src="address_files/went.jpeg" title=""
> class=""></a>
> </td>
> ...

That's bizarre. To my knowledge, Silva always includes the sizes. In
fact it's very bad practice to not do that, as it slows down page
rendering by the browser dramatically.

What could be causing this:
+ Are the images scaled?
+ Are the images cropped?
+ Are the 'original' images TIFF or Photoshop, a non-web format?

None of the above should matter, but just trying to isolate the problem....

+ Are the images actually called by CodeSources?

It's also strange that there is no alt tag in the source. It may be
empty, but it's always there. If the image has a title, the title
becomes the alt value. Also the class shouldn't be empty, it should at
least have class="default".

I just tried to reproduce this with Explorer (5.5) and Silva 1.2
everything seems to work.
kit



More information about the Silva-general mailing list