Created
September 10, 2011 01:11
-
-
Save brianpattison/1207774 to your computer and use it in GitHub Desktop.
My CSS Setup w/ Media Queries
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
<!-- It'd be easy for me to do what you want without changing much --> | |
<%= stylesheet_link_tag 'desktop/desktop' %> | |
<%= stylesheet_link_tag 'tablet/tablet', :media => 'only screen and (min-width: 768px) and (max-width: 991px)' %> | |
<%= stylesheet_link_tag 'mobile/mobile', :media => 'only screen and (max-width: 767px)' %> | |
<!-- Changed This --> | |
<meta name="viewport" content="width=device-width" /> | |
<!-- To This --> | |
<meta name="viewport" content="width=768" /> | |
<!-- Or I could just remove the links to the other style sheets for the one page --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment