Target IE with Media Queries

These are my go-to media queries when browser testing different versions of Internet Explorer:

@supports (-ms-ime-align:auto) { /* Edge / IE 12+ */
  		
	.selector {
		property: value;
	}
		
}


@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { /** IE 10 & 11 **/
	
	.selector {
		property: value;
	}	
	
}



@media screen and (min-width:0\0) { /* IE 9 */
	
	.selector {
		property: value;
	}
	
}

Place at the bottom of your main stylesheet.

Sourced here.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.