Created
April 12, 2012 01:35
-
-
Save daigofuji/2364126 to your computer and use it in GitHub Desktop.
Super simple css for “Hey, turn your phone around and you can see this better!” notification for mobile 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
<html> | |
<head> | |
<style type="text/css"> | |
#g-landscape {display:none; margin:0 auto;font-family: sans-serif; font-size:10px;} | |
@media only screen and (max-device-width: 800px) and (orientation:portrait) { | |
#g-landscape {display:block;} | |
} | |
</style> | |
</head> | |
<body> | |
<div id="g-landscape"><img src="img/turn.png" alt="" align="left" /> For a better viewing experience,<br/>turn the device into landscape mode</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment