[TYPO3-content-rendering] CSS Styled Imgtext

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Mon Jul 4 20:02:34 CEST 2005


Stefan Beylen schrieb:
> Christian Trabold wrote:
> 
>> Ah! Reinventing the wheel again?
>>
>> Sorry, but I don't get the bottomline of this thread...
>>
>> Replacing DIVs with blocked SPANs? Where's the point?
> 
> 
> div= block
> a content element is a block.
> 
> span= inline
> an image is in my opinion inline to a content element. therefor I prefer 
> span. This is IMHO semantically correct. Just because I convert it with 
> a stylesheet to a block element doesnt do any harm to the structure of 
> the document.
> 
> I hope my point is clear now.

Yes, but an image is for the W3C a block level element.

And redeclaring a span to a block level element with CSS doesn't improve 
the "correctnes". To the contrary, it degrades the readabilty of your 
markup.

I won't mind if you use such code for your projects, but I oppose such 
usage in any TYPO3 default code.

Masi



More information about the TYPO3-project-content-rendering mailing list