How can I insert the following:

<!--[if lte IE 9]>
    <style type='text/css'>
  #page{display: none;}

I tried it in page.tpl.php but not worked.


Put it in html.tpl.php also it work in page.tpl.php but I think you did not clear cache , please dont forget this, clear cache after templates changes.

also you can use conditional css this link help you


  • I cleared the cache ctrl+f5 but not changed... – Navin Rauniyar May 20 '14 at 5:03
  • do you try to put it in html.tpl.php? – Yuseferi May 20 '14 at 5:04
  • yes, tried that too.... – Navin Rauniyar May 20 '14 at 5:05
  • would you please add that part of code in your question ? – Yuseferi May 20 '14 at 5:06
  • what part? the exact code as in the question I placed in html.tpl.php in head..... – Navin Rauniyar May 20 '14 at 5:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.