How to i can use this
<!--[if lt IE 8]> <style type='text/css'> #header ul#h-menu li a{font-weight:normal!important} </style> <![endif]-->
if i remove <!--[if lt IE 8]><![endif]-->
Above code 'll run good in IE 8 but if i dont it dont run.
Help me with fixed IE, if i want in above code in all IE version,.
i want code #header ul#h-menu li a{font-weight:normal!important}
run only in IE
[if lt IE 8]
means "if lower than IE8" - and thats why it isn't working in IE8.wahat you want is
[if lte IE 8]
which means "if lower than or equal IE8".Use
<!-- [if lt IE 9] >
exact this code for IE9.The spaces are very Important.Also, the comment tag
is only supported in IE 8 and below, so if that's exactly what you're trying to target, you could wrap them in comment tag. They're the same as
In which lte means "less than or equal to".
See: Conditional Comments.
How about
You can read here about conditional comments.
This code was used to change a fade to show/hide in ie 8 7 6.
If you want this to work in IE 8 and below, use
lte
meaning "Less than or equal".For more on conditional comments, see e.g. the quirksmode.org page.