[TYPO3] Using csstidy in T3 possible?

Andreas Balzer typo3 at andreas-balzer.de
Mon Jan 1 13:13:47 CET 2007


Andreas Otto schrieb:
> Hi Andreas
> 
> Andreas Balzer wrote:
>> Cleaning css can be important today and if you use T3
>> capabilities to create css files (like me) it would be cool to get them
>> cleaned too.
> 
> Why don't you create clean CSS right from the start?
> 
> 
> Cheers,
> Andreas
> 
Well my css is clean. The problem is, that 20% are created by TYPO3. 
That means calculating dimensions of divs and images, setting colors, ..
All in all I have about 20 big pages of pure CSS. That's because I want 
to reach every browser on every plattform. Well all the online css 
optimiziers have a problem: They can't work with TYPOScript constants. 
But if I split my template into the dynamic and static stylesheets and 
optimize only the static and then add the dynamic to the static (just at 
the end), the id's and classes like .this_is_an_element 
.with_a_sub_element . . . . . . . .with_the_tiniest_link_element:hover I 
don't have any optimization at the end (just 2 KB smaller). However, if 
I get T3 to use csstidy I can almost save 10-15 KB of CSS size.

So it's more about the size of my CSS files than about real 
optimization.. (And no, I can't make my class and Id names shorter.. .. 
they have to explain themselves)

So any idea on how to get csstidy to work? (or any volunteer who can 
code it for free? *face-like-a-little-baby-wanting-something*) As far as 
I read on their website it's a simple request to a php class or a system 
executable file..

Greetings
Andreas



More information about the TYPO3-english mailing list