8

In Magento2, want to add css, specifically for IE 8, using

 <css src="css/ie-8.css" />

Not able to find anywhere in native source code.

11

Then you can use following code:

<head>
    <css src="css/ie-8.css" ie_condition="IE 8" />
</head>

Good luck! :)

| improve this answer | |
  • Good.. let me check – Amit Bera Apr 22 '16 at 6:22
  • Worked like a charm!! – huzefam Apr 22 '16 at 6:36
  • How can we remove a CSS file from all IE broesers? – Waqar Mar 3 '17 at 9:47
  • Try with ie_condition=!IE' – Bartłomiej Szubert Mar 3 '17 at 10:20
  • In what file do we need to add this code? – Rick Nov 29 '18 at 16:23

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.