Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile stylesheet include #4

Closed
paulirish opened this issue Jan 24, 2010 · 5 comments
Closed

mobile stylesheet include #4

paulirish opened this issue Jan 24, 2010 · 5 comments

Comments

@paulirish
Copy link
Member

i'm not sure on the best way to serve this..

from:
http://www.cssquirrel.com/presentations/refresh-2009-12/

<link rel="stylesheet" href="mobile.css" media="handheld, screen and (max-device-width: 480px)" type="text/css" />
(Since the iPhone Thinks It's a Big Boy)


<link rel="stylesheet" href="mobile.css" media="handheld, only screen and (max-device-width: 480px)" type="text/css" />
(To Help An Anonymous Quirky Browser So It Won't Think It's Mobile)


<link rel="stylesheet" href="mobile.css" media="handheld, only screen and (max-device-width: 480px)" type="text/css" />
<meta name="viewport" content="width = 320" />
(So The iPhone Won't Be Zoomed Out)


Here's A Solution
<link rel="stylesheet" href="standard.css" media="screen and (min-device-width: 481px)" type="text/css" />
<link rel="stylesheet" href="mobile.css" media="handheld, only screen and (max-device-width: 480px)" type="text/css" />
(Option To Override With JS-Powered Switch)
(Save It With A Cookie)
@paulirish
Copy link
Member Author

cssquirrel added:
@paul_irish The premise is the top link example would target normal devices (but be ignored by mobile devices).
@paul_irish And the bottom would be targeted by mobile, but ignored by standard PCs. So the mobile doesn't have to overwrite desktop styles.

@nimbupani
Copy link
Member

@nimbupani
Copy link
Member

@nimbupani
Copy link
Member

Oh and here is a scary list: http://www.mobile-phone-specs.com/

@nimbupani
Copy link
Member

k I think this one is done. If there is any new link to look into we should open it again.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants