[Typo3] IMAGE without border, width and height statements
Robert Markula
robert.markula at gmx.net
Sun Apr 24 22:14:35 CEST 2005
Christopher wrote:
>>I use the following simple code to display an image:
>>
>>10 = IMAGE
>>10.file = fileadmin/template/res/banner.jpg
>>
>>The problem is that the generated html contains image border, width and
>>height statements:
>>
>><img src="fileadmin/template/res/banner" width="760" height="178"
>>border="0" alt="" title="" />
>>
>>How can I get rid of them?
>>This problem is mentioned a couple of times in the list archive, but I
>>have not found a clean solution yet. TSref is of no help either.
>>
>
>
> The 'border' attribute is a problem sometimes, but I believe it is coded
> directly in the source. The 'width' and 'height' attributes, on the other
> hand, are *required* attributes for img elements in xhtml 1.0/html 4.01
> strict/transitional (along with 'alt' and 'src')...
Hi Christopher,
So there is no chance to get rid of 'border' by pure TS?
'Width' and 'height' are not mandatory, neither for XHTML 1.0 strict nor
for XHTML 1.1. But you're right, it's good practice to include them. For
my purpose, I need to scale an image with em, and I do this in CSS. So
no need for width/height here.
Regards,
Ro
More information about the TYPO3-english
mailing list