Guest
16 Feb 2013 01:35

Hi,

I am experiencing some issue on images (field type image) in article list:

it seems to cause some additional height that is not able to be controlled.

I set Thumbnail height to 40. No padding, no margin, no border.

I set table cell (td) height to 40, too. No padding, no margin, no border.

But table cell has height 43 in article list table! Thumbnails have correct size, but seem to have some weird 3px padding at bottom.

**When I disable image display in article list, table cell height is 40 (as it should be!). **

So it must have something to do with image field output! In other words: your field type image seems to generate some extra 3px padding that cannot be controlled via css.

I looked into source code and found this code on all table cells that contain thumbnails from image field:

<td class=""><img src="/..." alt="" hspace="8" vspace="0" title=""></td>

Two things to say about that:

  1. your field type image seems to generate some default hspace and vspace attributes. These are deprecated attributes since html4 standard. Webdesigner don't like them either, they prefer defining padding via css. But this should not be the problem in here. Just a side note ;)

  2. The td class is empty. Maybe that causes the issue? All the other table cell classes generated by your field types have valid class definitions, only the image td not? Just a guess.

Update: I just set a valid field class for images in article list table: same issue. So it has nothing to do with td class. No idea what's wrong. Hopefully you find it.

Last Modified: 02 Mar 2014


Konstantin
Total posts: 1,113
16 Feb 2013 05:03

You have this code to display images:


<td class="minibild"> <img vspace="0" hspace="0" title="Luckey-Schär" alt="Luckey-Schär" src="/ http://mgt.nethotel.at/uploads/thumbs_cache/image/73ae254d1d04eb3b8525db2f2c1cc8f5.gif " ilo-full-src=" http://mgt.nethotel.at/uploads/thumbs_cache/image/73ae254d1d04eb3b8525db2f2c1cc8f5.gif "> </td>

vspace="0" hspace="0" has no effect.

To decide your problem, just add to css class 'minibild' property 'display:block;' and all will be correct.


Guest
16 Feb 2013 07:18

display:block fixed the issue. still I do not know why td is not correct displayed without property block :(


Guest
28 Feb 2013 08:39

By the way: same issue on different site, with completely different template. To be precise: I am using your default template for records list on local installation. Field type gallery. Same bad behavior as mentioned above: thumbnails are displayed a little bit larger in height than they should and so it appears a repeating background effect.

This seems to be a bug of cobalt itself, because this time I did not any modification yet! Just using your default settings on your default templates with your default css.

Powered by Cobalt