On Fri, 9 Mar 2007, Sarah McCall wrote: > The bit I > don't understand is the IE fine-tuning. I've looked in the text > books, but am still not sure how the IE browser reads this, but the > other browsers don't.
It's described e.g. at http://www.quirksmode.org/css/condcom.html but basically the idea is that "<!--" starts a comment in HTML and "-->" ends the comment, so browsers except IE ignore anything between them, whereas IE has been programmed to have some special processing of comments, including the recognition of "[if...]" constructs. > And fundamentally where do I put the: > > <!--[if lte IE 6]> > <style type="text/css"> > .container li { background-position: 0 .5em; } /* *** IE correction > *** */ > </style> > <![endif]--> > > Does it go in the HTML document near the list itself? It goes into the <head> part of your HTML document, in a place where a <style> element can appear. Technically this all depends on how IE processes the comment, but in practice it's best to put it in a place where it would belong if it were a <style> element. (In practice, browsers typically accept <style> elements outside the <head> element, but there's hardly any reason to rely on this.) -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
