[TYPO3-templavoila] Using conditional comments in TV
Jan Wulff
messages at janwulff.de
Mon Jun 5 18:48:46 CEST 2006
Hi,
> This was discussed already a number of times. This is not going to be
> implemented any soon because requires serious changes in typo3 core but
> not considired top priority.
Thanks for the info. What about the option to not display the templavoila
output at the last place in the html head? It would be fully sufficient if
I could add another head entry after the templavoila output.
> Try to live without hacks/conditional comments. If you create template
> according to standards, you will not need conditional comments.
I for my part sure do and if IE would respect the standards, I wouldn't
have written this post! Just one example: The property "min-height" is a
part of the CSS2 standard. IE doesn't support it and much worse, it doesn't
also gets the "height" value right, because in IE a box is stretched to fit
its content, regardless of the "height" value. Till now you could fight
this bug with the "overflow" property and use it to substitute the missing
"min-height" property. For instance with this hack:
#element { min-height: 400px; height: auto; }
* html #element { height: 400px; }
Only IE understands the second line, so the minimum height of the box is
400px in all browsers and standard conform browser will also stretch the
box, because they still get the "auto" value. In IE 7 this approach won't
work anymore, because they fixed a lot of these selectors which only work
in IE. But there will still be no "min-height" in IE 7! There will for sure
be other bugs in the new IE, which will at last give us the option back to
set a property only for the IE7. I've heard of something like "*+html" :(.
But why should we start with these hacks again, if we can use a safe
approach like conditional comments? It's a much cleaner way instead of
writing hacks in your stylesheets. Furtermore with conditional comments the
standard conform browsern don't have to read the hacks anymore and get
slowed down by them.
Best Regards
Jan
More information about the TYPO3-project-templavoila
mailing list