LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

I'll be blue in IE 10 and black in everything else.

CSS
html[data-useragent*='MSIE 10.0'] h1 {
  color: blue;
}

h1 {
  text-align: center;
  padding: 20px;
}
JS
var b = document.documentElement;
b.setAttribute('data-useragent',  navigator.userAgent);
b.setAttribute('data-platform', navigator.platform );

// IE 10 == Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
Host Instantly Drag and Drop Website Builder

 

Description

Uses a technique in which you could target any browser by User Agent string. Which should be way last resort.
Term
Mon, 11/27/2017 - 21:44

Related Codes

Pen ID
Pen ID
Pen ID