On 7/5/06, Richard Grevers <[EMAIL PROTECTED]> wrote:
> I am struggling with my conditional comments syntax. The MSDN
> reference [1] does not give any examples of using comparison
> operators.
> If I use <!--[if lte IE 6]>  as per some example sites, the styles are
> not applied.
>
> But if I use <!--[if IE lte 6]>, the corrected styles are applied, but
> for some reason IE (both 6 and 7) is displaying the conditional
> comment code <!--[if IE lte 6]> <![endif]-->  at the top of the page
>
> See http://www.dramatic.co.nz/wfsm/test3.html for a demonstration.
>
> [1] 
> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

<!--[if IE lte 6]> is junk markup, so it appears on the page and the
browser ignores it.

You have IE 6 installed as a standalone and IE 7 installed as your
main IE browser right? Only one IE install responds to conditional
comments, unless you managed to go through the registry work to change
that. If anything, when you use

<!--[if lte IE 6]>

it probably is working but you can't tell since IE 6 doesn't get
conditional comments at all on your computer. You should try:

<!--[if lt IE 7]>

and see if your IE 7 beta applies the CC (IE 7 beta is less than IE
7). If it does, then you know IE 6 should be applying it too.

-- 
-- 
Christian Montoya
christianmontoya.com ... portfolio.christianmontoya.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/

Reply via email to