function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MarrisMarris 

IE 8 Compatibility Error

Hi all,

 

           My visualforce page has a comment code for IE 8. that is fo follows

 

    <!--[if lt IE 8]>
    <link rel="stylesheet" href="{!URLFOR($Resource.Styles,'/css/portal.css')}"/>
    &lt;![endif]--&gt;
    &lt;!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    &lt;![endif]--&gt;

 

It works well but it shows <!--[if lt IE 8]> <![endif]--> <!--[if IE]> in the top of my page

 

Previously i coded like this

 

<!--[if lt IE 8]>
    <link rel="stylesheet" href="/css/ie.css" />
    <![endif]-->
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif] -->  

 

But it is not working i.e my IE css is not executed in this code so Please provide me a solution 

 

Thanks

Marris