[dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Myron Turner <turnermm02@xxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 19 Aug 2007 20:51:19 -0500
Anika Henke wrote:
Gunther Pilz wrote:
Probably the best (easiest) way is to modify the
css_out() function in lib/exe/css.php!?
What for? Why don't you just put the above in your template?
OK, I put this in my template. So far so good.
But that means, that the IEs first load the standard compliant css and
then *additionly* the special IE css (which also means that I have an
additional http request).
What I would prefer is, that IEs don't load the standard compliant css,
but *only* their special css. Which of course then have to contain all
the other css, ie. from the plugins.
You are still free not to use css.php at all. So you can use your ie
css and standard css in whatever way suits you best, with or without
conditional comments.
BTW, I have never ever heard of serving IE with *only one* css file
especially created for it.
Serving an *additional* css file for IE, yes, that is common practice.
But in creating one complete css file only for IE, what is the benefit
in that? Did I miss anything new on the "css market"?
Anika
If you are concerned with an additional access to the server, since we
are using PHP, why don't you include additional CSS for IE in a
conditional php section:
<?php
if(preg_match('/MSIE/',$_SERVER['HTTP_USER_AGENT'])) {
echo '<STYLE type="text/css">';
/* place additional css here */
echo '</STYLE >';
}
?>
Just make sure this comes after the stylesheets have been loaded.
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- References:
- [dokuwiki] different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Andreas Gohr
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Anika Henke
Other related posts:
- » [dokuwiki] different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
- » [dokuwiki] Re: different Stylesheets with Conditional Comments
Gunther Pilz wrote:
Probably the best (easiest) way is to modify the css_out() function in lib/exe/css.php!?What for? Why don't you just put the above in your template?OK, I put this in my template. So far so good. But that means, that the IEs first load the standard compliant css and then *additionly* the special IE css (which also means that I have an additional http request). What I would prefer is, that IEs don't load the standard compliant css, but *only* their special css. Which of course then have to contain all the other css, ie. from the plugins.
You are still free not to use css.php at all. So you can use your ie css and standard css in whatever way suits you best, with or without conditional comments.
BTW, I have never ever heard of serving IE with *only one* css file especially created for it. Serving an *additional* css file for IE, yes, that is common practice. But in creating one complete css file only for IE, what is the benefit in that? Did I miss anything new on the "css market"?
Anika
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Andreas Gohr
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Gunther Pilz
- [dokuwiki] Re: different Stylesheets with Conditional Comments
- From: Anika Henke