target internet explorer with css and html

target all internet explorer versions with this

<!--[if IE]>
  <link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->

target ie 10 and 11

p { 
	color: red;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	color: pink;
	/* IE10+ styles */
}

target edge browser

@supports (-ms-accelerator:true) {
  /* IE Edge 12+ CSS styles */ 
}

Demo

Other Items in css
Page Views

This page has been viewed 78 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹