Le 23 févr. 2013 à 06:47, Tom Livingston <tom...@gmail.com> a écrit :
> I have been reading more recently that some are tending to abandon the > above for media queries within a single sheet. My question is how does one > handle old IE using the single sheet method? I don't really like polyfills > and would rather achieve the same effect as above without having to > polyfill old IE to understand the media queries. Is this idea possible in > the single-sheet scenario? You can build an old_IE only stylesheet that adds / duplicates all [*] the styling you put inside media queries in your main stylesheet. Then load that old_IE stylesheet via a conditional comment. I usually add a comment in my main stylesheet for things that need attention for older IE, then it is easy, when building the old_IE stylesheet, to perform a simple search for instances of that comment (with a little bit of Applescript help). Some people automate that with preprocessors like SASS or whatever is the fashion these days, but that is way to complicated for my old brain. [*] … or some … depending on what you need, and what old_IE can actually understand (no need to stick box-shadow or gradients in it for example) Philippe -- Philippe Wittenbergh http://l-c-n.com ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/