Alan Gresley wrote: > Erik Vorhes wrote: >> On Fri, Jul 17, 2009 at 1:29 AM, Alan Gresley<a...@css-class.com> wrote: >>> The best way is to only hack IE7 or lower since all modern browsers >>> (including IE8) should render a page the same way. I would not recommend >>> hacking your HTML with IE Conditional comments since they are not in one >>> location and thus not easily removed. >>> >> Alan, >> >> Decentralization of CSS may sometimes pose an issue, but using >> conditional comments for IE isn't actually a hack. It's using a >> proprietary Microsoft extension; every other browser simply treats >> conditional comments as regular comments. The additional benefit of >> conditional comments is that you can use other proprietary Microsoft >> CSS extensions (e.g., "zoom" and various JScript expressions) within >> them without causing your code to invalidate. > > Hello Erik, > > This is still hacking HTML for IE7 or lower due to lack of support for > CSS2.1. My CSS and hacks are *centralized* as oppose to being > *decentralized* in the HTML. They can be removed in a flash.
All your conditional comment (in the HTML) needs to contain is a style link pulling in whatever stylesheet you want to feed IE. Then your CSS is not in the HTML, just the stylesheet an IE browser pulls in when it processes your conditional comment. -- David gn...@hawaii.rr.com authenticity, honesty, community ______________________________________________________________________ css-discuss [cs...@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/