[TYPO3-dev] [Fwd: Re: text/img and img elements with css-class?]

Martin Kutschker masi-no at spam-typo3.org
Thu Dec 11 13:18:32 CET 2008


grac schrieb:
> hi franz
> 
> i understand now probably our misunderstandings or, better, different
> starting points of our discussion.
> 
> as i said, i use YAML with templavoila.
> which means that among a lot of other things that each browser is fed by
> default fontsize values (in curly brackets, of course):
> html * = font-size: 100.01%   and   body = font-size: 75.00%  (meaning
> 12px)
> 
> from there almost everything that follows is calculable in percent.

This means, if I understand correctly, that TYPO3 would have to deliver
the image only with a class attribute but no width information (or
alternatively some inline style with width in %).

This leaves two questions for me:

* how to calculate/set the physical size of the image?

Normally TYPO3 scales down images if they are too large for the Web.
Where will this value be set by whom? I doesn't make sense to let the
browser scale down a full-size image coming from a digital camera.

Maybe there can be a global preset that can be overridden individually.

* What is to be done with elements that have more than one image?

TYPO3 now calculates the width of an individual image by taking into
account the total number of images per row and the expected spacing
between the image columns.  This can of course not be achieved with fix
CSS classes. I think it could still work with % values as you can divide
of course also the total width in % on the various images in the row.
But what to do with the vertical spacing? You cannot express this in %.

Masi




More information about the TYPO3-dev mailing list