Skip to content

Instantly share code, notes, and snippets.

@machal
Created August 2, 2012 10:41
Show Gist options
  • Select an option

  • Save machal/3236164 to your computer and use it in GitHub Desktop.

Select an option

Save machal/3236164 to your computer and use it in GitHub Desktop.
Mobile First vs. IE8- solution with LESS
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="index.css">
<!--[if lte IE 8]><link rel="stylesheet" href="old_ie.css"><![endif]-->
</head>
<body>
</body>
</html>
// All browsers
@import "base.less";
@import "mobile.less";
@media screen and (min-device-width: 481px) {
@import "desktop.less";
}
// IE8-
@import "desktop.less";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment