Skip to content

Instantly share code, notes, and snippets.

@fragje
fragje / mediaqueries.css
Created March 13, 2012 08:31 — forked from saturngod/mediaqueries.css
css: Media queries
@media screen and (max-width:480px){
#content {
width:470px;
}
}
@media screen and (max-width:320px){
@fragje
fragje / gist:2027581
Created March 13, 2012 08:22 — forked from eculver/gist:530619
JavaScript: Super sexy IE detection
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
// And to detect the version:
// ie === 6 // IE6
// ie > 7 // IE8, IE9 ...