Created
November 26, 2013 12:01
-
-
Save sorabh86/7657268 to your computer and use it in GitHub Desktop.
Html5: media query for devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<!-- Phone --> | |
<link href="${1:phone-style.css}" rel="stylesheet" type="text/css" media="only screen and (max-width:320px)"> | |
<!-- Tablet --> | |
<link href="${2:tablet-style.css}" rel="stylesheet" type="text/css" media="only screen and (min-width:321px) and (max-width:768px)"> | |
<!-- Desktop --> | |
<link href="${3:style.css}" rel="stylesheet" type="text/css" media="only screen and (min-width:769px)"> | |
]]></content> | |
<tabTrigger>mq</tabTrigger> | |
<scope>text.html</scope> | |
<description>css/media-phone/tablet/desktop</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment