![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Daniel Déchelotte <maitre_yodan (AT) fr (DOT) club-internet.invalid> writes: I am using for now conditional comment[3] (clean) to give IE its CSS, and a IE parsing bug[4] (not clean) to hide the real CSS from IE: |
|
I am wondering whether a better method exists, especially one that would: * not rely on a IE bug to hide the CSS file |
|
I have no idea whether this would work (don't have IE handy), but what does IE make of something like this: !--[IF IE] ![IF !IE] ![endif]-- baz !--[IF IE] ![endif] ![endif]-- -- for everything else it's just baz surrounded by a pair of comments? |
#2
| |||
| |||
|
|
As reported, at least by Daniel, this CC attempt is "working" but it also made me think a bit about what is really happening inside IE in that case. Let's structure the "code" a bit at first. 1. <!--[IF IE] 2. <![IF !IE] 3. <![endif]-- 4. baz 5. <!--[IF IE] 6. <![endif] 7. <![endif]-- |
#3
| |||
| |||
|
|
Dave Anderson a écrit : | Daniel Déchelotte wrote: | ...shouldn't this simple code work: | | <!--[if !IE]-- | <p>read by browsers, ignored by IE | <!--[endif]-- Nope... [...] In an attempt to summarize the thread, the minimum code would be: !--[if IE] ... IE specific code here ... ![if !IE]>< -- ... non-IE code here ... !-- ><![endif]><![endif]-- W3C and Microsoft compliant, if not terribly legible. |
![]() |
| Thread Tools | |
| Display Modes | |
| |