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.

1 Answer 1

11

Then you can use following code:

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

Good luck! :)

11
  • Good.. let me check
    – Amit Bera
    Commented Apr 22, 2016 at 6:22
  • Worked like a charm!!
    – huzefam
    Commented Apr 22, 2016 at 6:36
  • How can we remove a CSS file from all IE broesers?
    – Waqar
    Commented Mar 3, 2017 at 9:47
  • Try with ie_condition=!IE' Commented Mar 3, 2017 at 10:20
  • In what file do we need to add this code?
    – Rick
    Commented Nov 29, 2018 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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