If you are trying to apply specific styles for the IE browser then you should try to use below media query to target the IE browser.
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
}
example:
<!doctype html>
<html>
<head>
<style>
#textDiv
{
position:absolute;
color:green;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
#textDiv
{
position:relative;
color:red;
}
}
</style>
</head>
<body>
<div id="textDiv">This is text...</div>
</body>
</html>
You can notice that CSS code inside the media query will only apply for the IE 10 or IE 11 browser.
Reference:
How to target only IE (any version) within a stylesheet?