|
Posted by BootNic on 10/26/07 05:47
"KiwiBrian" <briantoz@ihug.co.nz> wrote:
news:ffr98n$dga$1@lust.ihug.co.nz:
> KiwiBrian wrote:
[snip]
>> It behaves as expected when I run it under Firefox.
>> Can anyone please explain this, and or advise where I am going wrong?
[snip]
>> <!-- [if IE7]>
As it has already be said, you need a space between IE and 7.
There is also a space before the [ that needs to be removed.
<!--[if IE 7]>
[snip]
> below code isn't it missing the "--" <!--[if !IE]>
No its not missing anything for HTML.
> And also since *only* IE recognizes the conventional crap the test
> "!IE" would not be displayed by *any* browser! IE would recognize > it
and evaluate it as false and other browsers will just ignore it > an HTML
comment.
It is true that conditional comments are for IE, other browsers do not need
to understand them. If not IE then IE will not display it.
Other browsers should ignore the conditional comments, and when done
correctly !IE will display in browsers that are not IE. As the OP has
stated, it displays as expected in Firefox.
It is completely incorrect to say that !IE conditional comments will not
display in any browser, when done correctly.
>> <![if !IE]>
>> <p style="font-size:24px; color:red">This is a non-IE test</p>
>> <![endif]>
Another option for the !IE comment would be:
<!--[if !IE]> <-->
<p style="font-size:24px; color:red">This is a non-IE test</p>
<!--> <![endif]-->
[snip]
[url] http://msdn2.microsoft.com/en-us/library/ms537512.aspx [/url]
--
BootNic Friday October 26, 2007 1:47 AM
Thirty-five is when you finally get your head together and your body
starts falling apart.
*Caryn Leschen*
Navigation:
[Reply to this message]
|