Sameera Liyanage Sameera Liyanage - 22 days ago 4
CSS Question

How to Identify Microsoft EDGE browser by CSS?

I'm developing web application and I need to identify EDGE browser separately from others. Is there a way to identify EDGE by using CSS?
Just like,

<!--[if IE 11]>
Special instructions for IE 11 here
<![endif]-->

Answer

This one should work:

@supports (-ms-ime-align:auto) {
    .selector {
        property: value;
    }
}

For more see: Browser Strangeness

Comments