Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Conditional Comment Query
October 25, 2007, 11:35 pm
rate this thread
It does not display the appropriate line of print when I run it under IE7.
It behaves as expected when I run it under Firefox.
Can anyone please explain this, and or advise where I am going wrong?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- [if IE7]>
<p style="font-size:24px; color:red">This is an IE test</p>
<p style="font-size:24px; color:red">This is a non-IE test</p>
- Jonathan N. Little
October 26, 2007, 4:35 am
Re: Conditional Comment Query
Don't need to HTML comment out your CSS, nobody is using a browser that old.
below code isn't it missing the "--" <!--[if !IE]>
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.
LITTLE WORKS STUDIO
- » Thank you- I was dumb and now I make my own websites-thanks
- — Previous thread in » HTML Markup Language