[TYPO3] How to use seperate style sheets for browsers
Benjamin Mack
mack at xnos.org
Thu Oct 25 19:18:24 CEST 2007
Hey Stephen,
you can use TypoScript for this. With conditional Typoscript
[browser = ie]
page.includeCSS.file1 = fileadmin/templates/ie.css
[browser = mozilla]
...
[else]
...
[end]
Look it up in the TSref documentation to get more help on this topic!
greetings,
benni.
-SDG-
www.xnos.de // www.xnos.org
Stephen Bungert wrote:
> Hello,
>
> In a web page, not made with typo3, I would have my core styles
> developed for the browser I did the development with and then
> addditional css links apended by php based on browser detection, or I
> could use conditional comments if the css was aimed solely at IE.
>
> How do I do this with a TYPO3 site?
>
> html comments seem to get removed (at least in the head) so all browsers
> see the modifications for IE when I tried this. Would it work if the
> style link was in the body? Or would typo3 remove the comments again?
>
> I tried using php in my template. Typos pages are php, so I thought I
> could maybe just leave some php code in the html template and it would
> work but this gets removed too.
>
> How can I do this? Load seperate stylesheets? How do you all do (if you
> should need to)?
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list